Part Number Hot Search : 
SFH231 IL260B UFS315J TB0448A 2SC318 B84102C DMA30401 03001
Product Description
Full Text Search
 

To Download XR17D152 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  exar corporation 48720 kato road, fremont ca, 94538 ? (510) 668-7000 ? fax (510) 668-7017 ? www.exar.com        XR17D152 universal (3.3v and 5v) pci bus dual uart july 2003 rev. 1.1.0 general description the XR17D152 1 (d152) is a monolithic dual pci bus universal asynchronous receiver and transmitter (uart) in exars pci bus uart family. the device is designed to meet todays 32-bit pci bus and high bandwidth requirement in communication systems. the global interrupt source register provides a complete interrupt status indication for both channels to speed up interrupt parsing. each uart is independently controlled and has its own 16c550 compatible 5g (fifth generation) register set, transmit and receive fifos of 64 bytes, fully programmable transmit and receive fifo trigger levels, transmit and receive fifo level counters, automatic hardware flow control with programmable hysteresis, automatic software (xon/xoff) flow control, automatic half-duplex control output, wireless irda (infrared data association) infrared encoder/ decoder, 8 multi-purpose inputs/outputs and a 16-bit general purpose timer/counter. n ote : 1 covered by u.s. patents #5,649,122, #5,949,787 applications universal pci bus add-in card network management factory automation and process control ethernet network to serial ports point-of-sale systems multi serial ports rs-232/rs-422/rs-485 cards features high performance dual pci uart universal pci bus buffers - auto-sense 3.3v and 5v operation 32-bit pci bus 2.3 target signalling compliance a global interrupt source register for both uarts data transfer in byte, word and double-word data read/write burst operation each uart is independently controlled w ith: n 16c550 compatible 5g register set n 64-byte transmit and receive fifos n transmit and receive fifo level counters n programmable tx and rx fifo trigger level n automatic rts/cts or dtr/dsr flow control n automatic xon/xoff software flow control n automatic rs485 hdx control output with selectable turn-around delay n infrared (irda 1.0) data encoder/decoder n programmable data rate with prescaler n up to 6.25 mbps data rate at 8x sampling eight multi-purpose inputs/outputs a general purpose 16-bit timer/counter sleep mode with automatic wake-up eeprom interface for pci configuration same package and pin-out as the xr17c152 (14x14x1.0 mm tqfp ) f igure 1. b lock d iagram tmrck device configuration registers xtal1 xtal2 crystal osc/buffer tx0, rx0, dtr0#, dsr0#, rts0#, cts0#, cd0#, ri0# pci local bus interface clk (33 mhz) configuration space registers . mpio0- mpio7 multi-purpose inputs/outputs tx1, rx1, dtr1#, dsr1#, rts1#, cts1#, cd1#, ri1# 16-bit timer/counter eeck eedi eedo eecs eeprom interface vcc (core logic) gnd enir uart channel 0 64 byte tx fifo 64 byte rx fifo brg ir endec tx & rx uart regs uart channel 1 64 byte tx fifo 64 byte rx fifo brg ir endec tx & rx uart regs en485# 3.3v or 5v (pci vi/o power supply) rst# ad[31:0] c/be[3:0]# par frame# irdy# trdy# devsel# stop# idsel perr# serr# inta#
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 2 f igure 2. p in o ut of the XR17D152 ordering information p art n umber p ackage o perating t emperature r ange d evice s tatus XR17D152cm 100-lead tqfp 0c to +70c active XR17D152im 100-lead tqfp -40c to +85c active mpio0 mpio1 vcc gnd ad24 c/be3# idsel vio eecs eedi eeck eedo vcc test# xtal1 xtal2 mpio2 mpio3 rx1 cts1# tx1 dtr1# rts1# ri1# cd1# dsr1# rx0 cts0# dsr0# cd0# ri0# rts0# dtr0# tx0 ad26 ad27 ad28 ad29 ad30 ad31 vio gnd clk rst# inta# ad25 mpio5 tmrck enir vio gnd mpio7 mpio6 mpio4 gnd ad11 ad10 ad9 ad8 vio gnd c/be0# ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 vio 27 26 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 49 48 en485# nc gnd nc devsel# 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 gnd gnd ad23 ad22 ad21 ad20 ad19 ad18 ad17 ad16 c/be2# frame# irdy# trdy# vio stop# perr# serr# par c/be1# ad15 ad14 ad13 ad12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 53 54 55 56 57 58 59 60 61 62 63 64 51 52 75 74 73 72 71 70 67 68 69 66 65 XR17D152 100-tqfp (14x14x1.0mm)
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 3 pin descriptions n ame p in #t ype d escription pci local bus interface rst# 86 i pci bus reset input (active low). it resets the pci local bus configuration space registers, device configuration registers and uart channel registers to the default c ondition, see table 18 on page48 . clk 87 i pci bus clock input of up to 33.34mhz. ad31-ad24, ad23-ad16, ad15-ad8, ad7-ad0 90-97, 2-9, 24-31, 35-42 i/o address data lines [31:0] (bidirectional). frame# 13 i bus transaction cycle frame (active low). it indicates the beginning and dura- tion of an access. c/be3# - c/be0# 98, 12, 21, 34 i bus command/byte enable [3:0] (active low). this line is multiplexed for bus command during the address phase and byte enables during the data phase. irdy# 14 i initiator ready (active low). during a write, it indicates that valid data is present on data bus. during a read, it indi cates the master is ready to acc ept data. trdy# 15 o target ready (active low). stop# 17 o target request to stop current transaction (active low). idsel 99 i initialization device select (active high). devsel# 16 o device select to the XR17D152 (active low). inta# 85 od device interrupt from XR17D152 (open drain, active low). par 20 i/o parity is even across ad[31:0] and c/be[ 3:0]#. (bidirec tional, active high). perr# 18 o data parity error indicator, except for special cycle transactions (active low). optional in bus target application. serr# 19 od system error indicator, address parity or data parity during special cycle transactions (open drain, active low). optional in bus target application. modem or serial i/o interface tx0 73 o uart channel 0 transmit data or infrared transmit data. normal txd output idles at logic 1 condition while infrared txd output idles at a logic 0 condition. rx0 66 i uart channel 0 receive data or infrared receive data. normal rxd input idles at logic 1 condition while infrared rxd input idles at a logic 0 condition. in the infrared mode, the polarity of the incoming rxd signal can be selected via fctr bit-4. if this bit is a logic 0, logic 0 on the rxd input is considered a mark and if this bit is a logic 1, a logic 0 on the rxd input is considered a space. rts0# 71 o uart channel 0 request to send or general purpose output (active low). if this output is not used, leave it unconnected. cts0# 67 i uart channel 0 clear to send or general purpose input (active low). this input should be connected to vcc w hen not used.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 4 dtr0# 72 o uart channel 0 data terminal ready or general purpose output (active low). if this output is not used, l eave it unconnected. dsr0# 68 i uart channel 0 data set ready or general purpose input (active low). this input should be connected to vcc w hen not used. cd0# 69 i uart channel 0 carrier detect or general purpose input (active low). this input should be connected to vcc when not used. ri0# 70 i uart channel 0 ring indicator or general purpose input (active low). this input should be connected to vcc w hen not used. tx1 62 o uart channel 1 transmit data or infrared transmit data. normal txd output idles at logic 1 condition while infrared txd output idles at a logic 0 condition. rx1 55 i uart channel 1 receive data or infrared receive data. normal rxd input idles at logic 1 condition while infrared rxd input idles at a logic 0 condition. in the infrared mode, the polarity of the incoming rxd signal can be selected via fctr bit-4. if this bit is a logic 0, logic 0 on the rxd input is considered a mark and if this bit is a logic 1, a logic 0 on the rxd input is considered a space. rts1# 60 o uart channel 1 request to send or general purpose output (active low). if this output is not used, leave it unconnected. cts1# 56 i uart channel 1 clear to send or general purpose input (active low). this input should be connected to vcc w hen not used. dtr1# 61 o uart channel 1 data terminal ready or general purpose output (active low). if this output is not used, l eave it unconnected. dsr1# 57 i uart channel 1 data set ready or general purpose input (active low). this input should be connected to vcc w hen not used. cd1# 58 i uart channel 1 carrier detect or general purpose input (active low). this input should be connected to vcc w hen not used. ri1# 59 i uart channel 1 ring indicator or general purpose input (active low). this input should be connected to vcc w hen not used. ancillary signals mpio0-mpio7 52-45 i/o multi-purpose inputs/outputs 0-7. the function of these pin are defined thru the configuration register mpiosel, mpiolvl, mpioinv, mpio3t and mpioint eeck 84 o serial clock to eeprom. pin has a weak internal pull-down resistor. an inter- nal clock of clk divide by 256 is used for reading the vendor and sub-vendor id and model number during power up or reset. however, it can be manually clocked thru the configuration register regb. eecs 83 o chip select to a eeprom d evice like 93c 46. it is manually selectable thru the configuration register regb. requires a pull-up 4.7k ohm resister for exter- nal sensing of eeprom during power up. see dan 112 for furt her details. eedi 82 o write data to eeprom d evice. it is manually acc essible thru the configura- tion register regb. the d152 auto-configuration register interface logic uses the 16-bit format. pin descriptions n ame p in #t ype d escription
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 5 n ote : pin type: i=input, o=output, i/o= input/output, od= output open drain. eedo 81 i read data from eeprom d evice. it is manually access ible thru the configu- ration register regb. xtal1 77 i crystal of up to 24mhz or external clock i nput of up to 50mhz for data rates up to 6.25mbps at 5v and 8x sampling. see ac characterization table. cau- tion: this input is not 5v tole rant at 3.3v. xtal2 76 o crystal or buffered clock output. tmrck 75 i 16-bit timer/counter external clock input. enir 74 i global infrared mode enable (active high). during power up or reset, this pin is sampled and if it is a logic high, both uarts are set for infrared mode. also, the infrared mode bit, m cr[6], is set in both channels. s oftware can override this pin thereafter and enable or disable infrared mode. en485# 65 i global autors485 half-duplex direction control enable (active low). during power up or reset, this pin is sampled and if it is a logic high, both uarts are set for auto rs485 mode. also, the auto rs485 bit, fctr[5], is set in both channels. software can override this pin thereafter and enable or disable it. test# 79 i factory test. connect to vcc for normal operation. vcc 54, 80 pwr 5v or 3.3v power supply for the core logic. this power supply determines the voh level of the non-pci bus interface outputs. note that vcc 3 vio for normal device operation. see application examples on page7. however, vcc must equal vio if sleep mode is used . see sleep mode section on page 18 . vio 10, 22, 32, 43, 89, 100 pwr pci bus i/o power supply - 3.3v or 5v, detected by the auto-sense circuitry of the XR17D152. this power supply determines the voh level of the pci bus interface outputs. (pci 2.3 signalling compliant at both 3.3v and 5v operation, suitable for uni- versal form factor add-in card application.) gnd 1, 11, 23, 33, 44, 53, 78, 88 pwr power supply common, gro und. nc 63, 64 no connection. pin descriptions n ame p in #t ype d escription
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 6 functional description the XR17D152 integrates the functions of 2 enhanced 16550 uarts with the pci local bus interface and a non-volatile memory interface for pci buss plug-and-play auto-configuration, a 16-bit timer/counter, 8 multi- purpose inputs/outputs, and an on-chip oscillator. the pci local bus is a synchronous timing bus where all bus transactions are associated to the bus clock of up to 33 mhz. the d152 supports 32-bit wide read and write data transfer operations including data burst mode through the pci local bus interface. read and write data operations may be in byte, word or double-word (dword) format. the data transfer rate in a dword operation is 4 times faster than the single byte operation with 8-bit isa bus. a single 32-bit interrupt status register provides interrupts status for both uarts, timer/counter, multipurpose inputs/outputs, and a special sleep wake up indicator. there are three sets of registers in the device. first, the pci local bus configuration registers for pci auto configuration. a set of device configuration registers for overall control, 32-bit wide transmit and receive data transfer, and monitoring of the 2 uart c hannels. lastly, each uart channel has its own 16550 uart compatible configuration register set for individual channel control, status, and byte wide data transfer. see electrical characteristics table for more details. each uart has the fifth generation (5g) register set, 64-byte fifos, automatic rts/cts or dtr/dsr hardware flow control with hysteresis control, automatic xon/xoff and special character software flow control, programmable transmit and receive fifo trigger level, fifo level counters, infrared encoder and decoder (irda ver 1.0), programmable baud rate generator with a prescaler of 1x or 4x, and data rate up to 3 mbps. the XR17D152 bus timing and drive capability meets the pci local bus specification revision 2.3 for 3.3v and 5v 33.34 mhz operation over the temperature range. pci l ocal b us i nterface this is the host interface and it meets the pci local bus specification revision 2.3. the pci local bus operations are synchronous meaning each transaction is associated to the bus clock. the XR17D152 can operate with the bus clock of up to a 33.34 mhz. data transfers operation can be formatted in 8-bit, 16-bit, 24- bit or 32-bit wide. with 32-bit data operations, it pushes the data transfer rate on the bus up to 132 mbyte/sec. this increases the overall systems communication performance up to 16 times better than the 8-bit isa bus. see pci local bus specification revision 2.3 for bus operation details. pci l ocal b us c onfiguration s pace r egisters a set of pci local bus configuration space register is provided. these registers provide the pci local bus operating system with the cards vendor id, device id, sub-vendor id, product model number, and resources and capabilities. the pci local bus operating system collects this data from all the cards on the bus during the auto configuration phase that follows immediately after a power up or system reset/reboot. after it has sorted out all devices on the bus, it defines and download the operating conditi ons to the cards. one of the definitions is the base address loaded into the base address register (b ar) w here the card will be operating in the pci local bus memory space. eeprom i nterface an external 93c46 eeprom is only used to store the vendors id and model number, and the sub-ve ndors id and product model number. this information is only used with the plug-and-play auto configuration of the pci local bus. these data provide automatic hardware installation onto the pci bus. the eeprom interface consists of 4 signals, eedi, eedo, eecs, and eeck. the eeprom is not needed when auto configuration is not required in the application. however, if your design requires non-volatile memory for other purpose. it is possible to store and retrieve data on the eeprom through a special pci device configuration register. see application note dan112 for its programming details.
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 7 1.0 application examples the XR17D152 is designed to operate with vcc (voltage to the uart core logic) greater than or equal to vio. for a universal add-in card, it is usually unknown whether it will be plugged into a 3.3v or 5v pci slot, therefore vcc must be 5v to guarantee proper functionality in any pci slot as shown in figure 3 . in an embedded system, the designer can choose to use a 3.3v or 5v power supply for the uart core voltage. of course, the core voltage can be 3.3v only when the vio is 3.3v. in figure 4 , examples 1-3 show valid applications of the XR17D152 in an embedded system. f igure 3. t ypical a pplication for a u niversal a dd - in c ard pci local bus interface uart channel 1 uart channel 0 uart core logic vcc = 5v vio (3.3v or 5v) clk (up to 33.34mhz) max crystal frequency = 24mhz max external clock = 50mhz
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 8 f igure 4. t ypical a pplications in an e mbedded s ystem vio = 3.3v pci local bus interface uart core logic vcc = 5v clk (up to 33.34mhz) max crystal frequency = 24mhz max external clock = 50mhz uart channel 1 uart channel 0 pci local bus interface uart core logic vcc = 3.3v vio = 3.3v clk (up to 33.34mhz) max crystal frequency = 24mhz m a x ext e rn a l c l oc k = 33 mhz uart channel 1 uart channel 0 pci local bus interface uart core logic vcc = 5v vio = 5v clk (up to 33.34mhz) max crystal frequency = 24mhz max external clock = 50mhz uart channel 1 uart channel 0 example 1 vio = 3.3v, vcc = 5v example 3 vio = 3.3v, vcc = 3.3v example 2 vio = 5v, vcc = 5v
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 9 2.0 XR17D152 registers the XR17D152 uart has three different sets of registers as shown in figure 5 . the pci local bus configuration space registers are for plug-and-play auto-configuration when connecting the device to the pci bus. this auto-configuration feature makes installation very easy into a pci system and it is part of the pci local bus specification. the second register set is the device configuration registers that are acce ssible directly from the pci bus for programming general operating conditions of the device and monitoring the status of various functions. these registers are mapped into 1k of the pci bus memory address space. these functions include both channel uarts interrupt control and status, 16-bit general purpose timer control and status, multipurpose inputs/outputs control and status, sleep mode, soft-reset, and device identification and revision. and lastly, each uart channel has its own set of 5g internal uart configuration registers for its own operation control and status reporting. both sets of channel registers are embedded inside the device configuration registers space, which provides faster access. the following paragraphs describe all 3 sets of registers in detail. f igure 5. t he XR17D152 r egister s ets channel 0 int, mpio, timer, reg device configuration and uart[1:0] configuration registers are mapped on to the base address register (bar) in a 1k- byte of memory address space pci local bus target interface channel 0 channel 1 device configuration registers global source interrupt, multipurpose i/os, 16-bit timer/counter, sleep, reset, dvid, drev uart[1:0] configuration registers 16550 compatible and exar enhanced registers pci local bus configuration space registers for plug- and-play auto configuration 152regs vendor and sub-vendor id and product model number in external eeprom 0x0000 0x0200 0x0080 0x03ff 0x0100
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 10 2.1 pci local bus configuration space registers the pci local bus configuration space registers are responsible for setting up the devices operating environment in the pci local bus. the pre-defined operating parameters of the device are r ead by the pci bus plug-and-play auto-configuration manager in the operating system. after the pci bus has collected all data from every device/card on the bus, it defines and downloads the memory mapping information to each device/ card about their i ndividual operation memory address location and c onditions. the operating memory mapped address location is downloaded into the base address register (bar) register, 0x10. the plug-and-play auto configuration feature is only available when an external 93c46 eeprom is used. the eeprom contains the device vendor and sub-vendor data required by the auto-configuration setup. t able 1: pci l ocal b us c onfiguration s pace r egisters a ddress b its t ype d escription r eset v alue ( hex ) 0x00 31:16 rwr 1 device id (exar device id number or from eeprom) 0x0152 15:0 rwr 1 vendor id (exar id or from eeprom) assigned by pcisig 0x13a8 0x04 31 30 29:28 rwc rwc ro parity error detected. cleared by writing a logic 1. system error detected. cleared by writing a logic 1. unused 0000 27 r-reset target abort. set whenever d152 terminates with a target abort. 0 26:25 ro devsel# timing. 00 24 ro unimplemented bus master error reporting bit 0 23 ro fast back to back transactions are s upported 1 22:16 ro reserved status bits 000 0000 15:9,7, 5,4,3,2 ro command bits (reserved) 0x0000 8 rwr serr# driver enable. logic 1=enable dri ver and 0=disable driver 0 6 rwr parity error enable. logic 1=respond to parity error and 0=ignore 0 1 rwr command controls a devices response to mem space accesses: 0=disable mem space accesses, 1=enable mem space ac cesses 0 0 ro command controls a devices response to i/o space accesses: 0 = disable i/o space accesses 1 = enable i/o space accesses 0 0x08 31:8 ro class code (simple 550 communication controller). 0x070002 7:0 ro revision id (exar device revision number) current rev. value 0x0c 31:24 ro bist (built-in self test) 0x00 23:16 ro header type (a single function device with one bar) 0x00 15:8 ro unimplemented latency timer (needed only for bus master) 0x00 7:0 ro unimplemented cache line size 0x00 0x10 31:10 rwr memory base address register (bar) 0x00 00 00 9:0 ro claims a 1k address space for the memory mapped uarts 00 0000 0000 0x14 31:0 ro unimplemented base address register (returns zeros) 0x00000000
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 11 2.2 device configuration register set the device configuration registers and a special way to access each of the uarts transmit and receive data fifos are accessible directly from the pci data bus. this provides easy programming of general operating parameters to the d152 uart and for monitoring the status of various functions. the registers occupy 1k of pci bus memory address space. these addresses are offset onto the basic memory address, a va lue loaded into the memory base address register (bar) in the pci local bus configuration register set. these registers control or report on both channel uarts functions that include interrupt control and status, 16-bit general purpose timer control and status, multipurpose inputs/outputs control and status, sleep mode control, soft-reset control, and device iden tification and revision, and others. the registers set is mapped into 2 address blocks where each uart channel occupies 512 bytes memory space for its own 16550 compatible configuration registers. the device configuration and control registers are embedded inside the uart channel zeros address s pace between 0x 0080 to 0x0093. all these registers can be accessed in 8, 16, 24 or 32 bit width depending on the starting address given by the host at beginning of the bus cycle. transmit and receive data may be loaded or unloaded in 8, 16, 24 or 32 bit format to the registers address. every time a read or write operation is made to the transmit or receive register, its fifo data pointer is automatically bumped to the next sequential data location either in byte, word or dword. one special case applies to the receive data unloading when reading the receive data together with its lsr register content. the host must read them in 16 or 32 bits format in order to maintain integrity of the data byte with its associated error tags. 0x18h 31:0 ro unimplemented base address register (returns zeros) 0x00000000 0x1c 31:0 ro unimplemented base address register (returns zeros) 0x00000000 0x20 31:0 ro unimplemented base address register (returns zeros) 0x00000000 0x24 31:0 ro unimplemented base address register (returns zeros) 0x00000000 0x28 31:0 ro reserved 0x00000000 0x2c 31:16 rwr 1 subsystem id (write from external eeprom by customer) 0x0000 15:0 rwr 1 subsystem vendor id (write from external eeprom by cus- tomer) 0x0000 0x30 31:0 ro expansion rom base address (unimplemented) 0x00000000 0x34 31:0 ro reserved (returns zeros) 0x00000000 0x38 31:0 ro reserved (returns zeros) 0x00000000 0x3c 31:24 ro unimplemented maxlat 0x00 23:16 ro unimplemented mingnt 0x00 15:8 ro interrupt pin, use inta#. 0x01 7:0 rwr interrupt line. 0xxx n ote : rwr 1 =read/write from external eeprom. rwr=read/write from ad[31:0]. ro= read only. wo=write only. t able 1: pci l ocal b us c onfiguration s pace r egisters a ddress b its t ype d escription r eset v alue ( hex )
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 12 t able 2: XR17D152 d evice c onfiguration r egisters o ffset a ddress m emory s pace r ead /w rite d ata w idth c omment 0x000 - 0x00f uart channel 0 regs ( ta b l e 1 0 & ta b l e 1 1 ) 8/16/24/32 first 8 regs are 16550 compatible 0x010 - 0x07f reserved 0x080 - 0x093 device config. registers ( table 3 ) 8/16/24/32 0x094 - 0x0ff reserved read/write 0x100 - 0x13f uart 0 C read fifo read-only 8/16/24/32 64 bytes of rx fifo data 0x100 - 0x13f uart 0 C write fifo write-only 8/16/24/32 64 bytes of tx fifo data 0x140 - 0x17f reserved 0x180 - 0x1ff uart 0 C read fifo with status read-only 16/32 64 bytes of rx fifo data + 64 bytes of lsr status information 0x200 - 0x20f uart channel 1 regs ( ta b l e 1 0 & ta b l e 1 1 ) 8/16/24/32 first 8 regs are 16550 compatible 0x210 - 0x2ff reserved read/write 0x300 - 0x33f uart 1 C read fifo read-only 8/16/24/32 64 bytes of rx fifo data 0x300 - 0x33f uart 1 C write fifo write-only 8/16/24/32 64 bytes of tx fifo data 0x340 - 0x37f reserved 0x380 - 0x3ff uart 1 C read fifo with status read-only 16/32 64 bytes of rx fifo data + 64 bytes of lsr status information t able 3: d evice c onfiguration r egisters shown in byte alignment a ddress [a7:a0] r egister r ead /w rite c omment r eset s tate ox080 int0 [7:0] read-only interrupt [1:0], reserved [7:2] bits 7-0 = 0x00 ox081 int1 [15:8] read-only [5:0], reserved [7:6] bits 7-0 = 0x00 ox082 int2 [23:16] reserved [7:0] bits 7-0 = 0x00 ox083 int3 [31:24] reserved [7:0] bits 7-0 = 0x00 ox084 timercntl read/write timer control bits 7-0 = 0x00 ox085 timer reserved bits 7-0 = 0x00 ox086 timerlsb read/write timer lsb bits 7-0 = 0x00 ox087 timermsb read/write timer msb bits 7-0 = 0x00 ox088 8xmode read/write bits 7-0 = 0x00
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 13 ox089 rega reserved bits 7-0 = 0x00 ox08a reset write-only self clear bits after executing reset [3:0] bits 7-0 = 0x00 ox08b sleep read/write sleep mode [3:0] bits 7-0 = 0x00 ox08c drev read-only device revision bits 7-0 = 0x01 ox08d dvid read-only device identification bits 7-0 = 0x22 ox08e regb read/write bits 7-0 = 0x00 ox08f mpioint read/write mpio interrupt mask bits 7-0 = 0x00 ox090 mpiolvl read/write mpio level control bits 7-0 = 0x00 ox091 mpio3t read/write mpio output control bits 7-0 = 0x00 ox092 mpioinv read/write mpio input polarity select bits 7-0 = 0x00 ox093 mpiosel read/write mpio select bits 7-0 = 0xff t able 4: d evice c onfiguration r egisters shown in dword alignment a ddress r egister b yte 3 [31:24] b yte 2 [23:16] b yte 1 [15:8] b yte 0 [7:0] 0x080 - 083 interrupt (read-only) int3 int2 int1 int0 0x084-087 timer (read/write) timermsb timerlsb timer (reserved) timercntl 0x088-08b ancillary1 (read/write) sleep reset rega (reserved) 8xmode 0x08c-08f ancillary2 (read-only) mpioint regb dvid drev 0x090-093 mpio (read/write) mpiosel mpioinv mpio3t mpiolvl t able 3: d evice c onfiguration r egisters shown in byte alignment a ddress [a7:a0] r egister r ead /w rite c omment r eset s tate
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 14 2.2.1 the interrupt status register the XR17D152 has a 32-bit wide register [int0, int1, int2 and int3] to provide interrupt information and supports two interrupt schemes. the first scheme is a 2-bit indicator in int0 register representing the 2 channels with the first 3 bits representing each channel from 0 to 1. this permits the interrupt routine to quickly vector and serve that uart channel and determine the source(s) in each individual routines. int0 bit-0 represents the interrupt status for uart channel 0 when its transmitter, receiver, line status, or modem port status requires service. int0 bit-1 provides interrupt status for channel 1 and bits 2 to 7 are reserved and remain at a logic 0. the second scheme provides detail about the source of the interrupts for each uart channel. all the interrupts are encoded into a 3-bit code per channel. this 3-bit code represents 7 interrupts corresponding to individual uarts transmitter, receiver, line status, modem port status. int1 and int2 registers provide the 6- bit interrupt status for both channels. bits 8, 9 and 10 represents channel 0 and bits 11,12 and 13 represents channel 1. bits 14 to 31 are reserved and remain at logic zero. both channels interrupt status are available with a single dword read operation. this feature allows the host to quickly vector and serve the interrupts, reducing service interval, hence, reducing host bandwidth requirements. upon power-up or reset, all bits are a logic 0. a special interrupt condition is generated by the d152 upon awakening from sleep after both channels were put to sleep mode earlier. figure 6 shows the 4-byte interrupt register and its make up. int0 [7:0] channel interrupt indicator each bit gives an indication of the c hannel that has requested for se rvice. bit-0 represents channel 0 and bit-1 indicates channel 1. logic one indicates the channel n [1:0] has r equested for service. bits 2 to 7 are reserved and remain at logic zero the interrupt bit clears after reading the appropriate register of the interrupting channel register, see interrupt clearing section. registers int3, int2 and int1 [32:8] twenty four bit encoded interrupt indicator. each channels interrupt is encoded into 3 bits for receive, transmit, and status. bit [10:8] represent channel 0 and channel 1 with bits [13:11]. the 3 bit encoding and their priority order are shown below in table 5 on page 15 . the timer and mpio interrupts are for the device and therefore they exist within channel 0 only. global interrupt register (dword) [default 0x00-00-00-00] int3 [31:24] int2 [23:16] int1 [15:8] int0 [7:0] the int0 register provides status for each channel int0 register individual uart channel interrupt status rsvd rsvd rsvd ch-1 ch-0 bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 rsvd rsvd rsvd
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 15 . f igure 6. t he g lobal i nterrupt r egister , int0, int1, int2 and int3 t able 5: uart c hannel [1:0] i nterrupt s ource e ncoding p riority b it [ n +2] b it [ n +1] b it [ n ] i nterrupt s ource ( s ) x 0 0 0 none 1 0 0 1 rxrdy and rx line status (logic or of lsr[4:1]) 2010rxrdy time-out 3 0 1 1 txrdy, thr or tsr (auto rs485 mode) empty 4 1 0 0 msr, rts/cts or dtr/dsr delta or xoff/xon det. or special char. detected 5101reserved. 6 1 1 0 mpio pin(s). available only in channel 0, reserved in cha nnel 1. 7 1 1 1 timer time-out. available only in channel 0, reserved channel 1. t able 6: uart c hannel [1:0] i nterrupt c learing : rxrdy is cleared by reading data in the rx fifo until it falls below the trigger level. rxrdy time-out interrupt is cleared when the rx fifo becomes empty. rx line status interrupt clears after reading the lsr register. txrdy interrupt clears after reading isr register. modem status register interrupt clears after reading msr register. rts/cts or dtr/dsr delta interrupt clears after reading msr register. xoff/xon delta and spe cial character detect interrupt clears after reading the isr register. timer time-out interrupt clears after reading the timercntl register that is in the d evice configuration register set. mpio interrupt clears after reading the mpiolvl register that is in the device configuration register set. rsvd rsvd channel-1 channel-0 int2 register int1 register int3 register int0 register interrupt registers, int0, int1, int2 and int3 bit-0 bit-1 bit-2 bit-3 bit-7 bit-4 bit-5 bit-6 rsvd rsvd ch-1 ch-0 bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n bit n+1 bit n+2 bit n rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 16 2.2.2 general purpose 16-bit timer/counter. [timermsb, timelsb, timer, timecntl] ( default 0 x xx-xx-00-00) a 16-bit down-count timer for general purpose timer or counter. its clock source may be selected from internal crystal oscillator or externally on pin tmrck. the timer can be set to be a single-shot for a one-time event or re-triggerable for a continuous interval. an interrupt may be generated in the int register when the timer times out. it is controlled through 4 configuration registers [timercntl, timer, timelsb, timermsb]. these registers provide start/stop and re-triggerable or one-shot operation. the time-out output of the timer can be set to generate an interrupt for system or event alarm. timer [15:8] (default 0x00) reserved. f igure 7. t imer /c ounter circuit . t able 7: timer control r egisters timercntl [0] logic zero (default) disables timer-counter interrupt and logic one enables the interrupt, reading the timercntl clears the interrupt. timercnlt [1] logic zero (default) stops/pauses the timer and logic one starts/re-starts the timer/counter. timercntl [2] logic zero (default) selects re-trigger timer function and logic one selects one-shot (timer function. timercntl [3] logic zero (default) selects internal and logic one selects external clock to the timer/counter. timercntl [4] routes the timer-counter interrupt to mpi o[0] if mpiosel[0]=0 for external event control. timercntl [7:5] reserved (defaults to zero). tmrck osc. clock timercntl [3] 16-bit timer/counter timercntl [2] re-trigger single-shot timercntl [1] start/stop timercntl [0] timer interrupt, ch-0 int=7 time-out timer interrupt enable single/re-triggerable timermsb and timerlsb (16-bit value) 0 1 0 1 0 1 no interrupt clock select timercntl [4] 0 1 mpio[0] mpiolvl[0] timercntl register rsvd rsvd rsvd mpio[0] control clock select single/ re-trigger start/ stop in t enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 17 timermsb [31:24] and timerlsb [23:16] timermsb and timerlsb form a 16-bit value. the least-significant bit of the timer is being bit [0] of the timerlsb with most-significant-bit being bit-7 in timermsb. notice that these registers do not hold the current counter value when read. reading the timercntl register will clear its interrupt. default value is zero (timer disabled) upon powerup and reset. 2.2.3 8xmode [7:0] (default 0x00) each bit selects 8x or 16x sampling rate for that uart channel, bit-0 is channel 0. logic 0 (default) selects normal 16x sampling with logic one selects 8x sampling rate. transmit and receive data rates will double by selecting 8x. 2.2.4 rega [15:8] reserved 2.2.5 reset [23:16] - (default 0x00) the 8-bit reset register [reset] provides the software with the ability to reset the uart(s) when there is a need. each bit is self-resetting after it is written a logic 1 to perform a reset to that channel. all registers in that channel will be reset to the default condition, see table 18 on page 48 for details. bit-0 =1 resets uart channel 0 while bit-1=1 resets channel 1. timermsb register bit-15 bit-14 bit-13 bit-12 bit-11 bit-10 bit-9 bit-8 timerlsb register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 b it-0 16-bit timer/counter programmable registers rsvd rsvd rsvd rsvd rsvd rsvd ch-1 ch-0 8xmode register individual uart channel 8x clock mode enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 rsvd rsvd rsvd rsvd rsvd rsvd ch-1 ch-0 reset register individual uart channel reset enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 18 2.2.6 sleep [31:24] - (default 0x00) the first two bits of the sleep register enab les each uart channel s eparately to enter sleep mode. the upper bits 2 to 7 are reserved. sleep mode reduces power consumption when the system needs to put the uart(s) to idle. the uart enters sleep mode when there is no interrupt pending. when both uarts are put to sleep, the on-chip oscillator shuts off to further conserve power. in this case, the XR17D152 is awakened on any of the channels by a receive data byte or a change on the serial port. the uart is ready after 32 crystal clocks to ensure full functionality. logic 0 (default) disables sleep mode and logic 1 enables it. important: the XR17D152 is a versatile device designed to operate with different vcc (core power supply) and vio(pci bus i/o power supply). however, the vcc and vio must be equal (vcc = vio) for the sleep mode to reduce power consumption. any difference in these voltages will result in high currents, when placed in sleep mode. if sleep mode is used, it is recommended that both vcc and vio be powered by the pci bus vio power pins. if sleep mode is not used, there is no concern about high currents whether vcc = vio or vcc > vio. in any case, vcc should never be less than vio. 2.2.7 device identification and revision there are two internal registers that provide device identification and revision, dvid and drev registers. the 8-bit content in the dvid register provides device identification. a return value of 0x22 from this register indicates the device is an xr17c152 or an XR17D152. the drev register returns an 8-bit value of 0x01 for revision a with 0x02 equals to revision b and so forth. this information is very useful to the software driver for identifying which device it is communicating with and to keep up with revision changes. dvid [15:8] device identification for the type of uart. the upper nibble indicates it is an xr17cxxx or xr17lxxx series device with lower nibble indicating the number of channels. examples: xr17c158 or xr17d158 = 0x28 xr17c154 or xr17l154 or xr17d154 = 0x24 xr17c152 or xr17l152 or XR17D152 = 0x22 drev [7:0] revision number of the XR17D152. a 0x01 represents "re vision-a" with 0x02 for rev-b and so fo rth. regb [23:16] (default 0x00) regb register provides a control for simultaneous write to both uarts configuration register or individually. this is very useful for device initialization in the power up and reset routines. also, the register provides a facility to interface to the non-volatile memory device such as a 93c46 eeprom. in embedded applications, the user can use this facility to store proprietary data. 2.2.8 regb register regb[16] (read/write) logic 0 (default) write to each uart configuration registers individually. logic 1 enables simulta neous write to both uarts configuration register. regb[19:17] reserved. regb[20] (write-only) control the eeck, clock, output (pin 84) on the eeprom interface. sleep register individual uart channel sleep enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 rsvd rsvd rsvd ch-1 ch-0 rsvd rsvd rsvd
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 19 2.2.9 multi-purpose inputs and outputs the d152 provides 8 multi-purpose inputs/outputs [mpio7:0] for general use. each pin can be program med to be an input or output function. the input logic state can be set for normal or inverted level, and optionally set to generate an interrupt. the outputs can be set to be normal logic 1 or 0 state, or three-state. their functions and definitions are programmed through 5 registers: mpioint, mpiolvl, mpio3t, mpioinv and mpiosel. if all 8 pins are set for i nputs, all 8 int errupts would be or ed t ogether. the ored interrupt is reported in the channel 0 uart interrupt status, see interrupt status register. the pins may also be programmed to be outputs and to the three-state condition for signal sharing. 2.2.10 mpio register bit 7 represents mpio7 pin and bit 0 represents mpio0 pin. there are 5 registers that select, control and monitor the 8 multipurpose inputs and output pins. figure 8 shows the internal circuitry. regb[21] (write-only) control the eecs, chips select, output (pin 83) to the eeprom device. regb[22] (write-only) eedi (pin 82) data input. write data to the eeprom device. regb[23] (read-only) eedo (pin 81) data output. read data from the eeprom device. f igure 8. m ultipurpose input / output internal circuit 2.2.8 regb register mpio pin [7:0] mpiolvl [7:0] read input level mpioint [7:0] rising edge detection int or and and 1 0 mpiosel [7:0] (select input=1, output=0 ) mpio3t [7:0] (3-state enable =1) mpiolvl [7:0] (output level) mpioinv [7:0] (input inversion enable =1) mpiockt
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 20 mpioint [7:0] (default 0x00) enable multipurpose input pin interrupt. if the pin is selected by mpiosel as input then bit-0 enables input pin 0 for interrupt, and bit-7 enables input pin 7. no interrupt is enable if the pin is selected to be an output. the interrupt is edge sensing and determined by mpioinv and mpiolvl registers. the mpio int errupt clears after a read to register mpiolvl. the combination of mpiolvl and mpioinv determines the interrupt being active low or active high, its level trigger. logic 0 (default) disables the pins interrupt and logic 1 enables it. mpiolvl [7:0] (default 0x00) output pin level control and input level status. the status of the input pin(s) is read on this register and output pins are controlled on this register. a logic 0 (default) sets the output to low and a logic 1 s ets the output pin to high. the mpio interrupt will clear upon reading this register. mpio3t [7:0] (default 0x00) output pin three-state control. a logic 0 (default) sets the output to active level per register mpiobit s ettling, a logic 1 sets the output pin to tri-state. mpioinv [7:0] (default 0x00) input inversion control. a logic 0 (default) does not invert the input pin logic. a logic 1 inverts the input logic level. mpio6 mpio7 mpio5 mpio4 mpio3 mpio2 mpio1 mpio0 mpioint register multipurpose input/output interrupt enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 mpio6 mpio7 mpio5 mpio4 mpio3 mpio2 mpio1 mpio0 mpiolvl register multipurpose output level control bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 mpio6 mpio7 mpio5 mpio4 mpio3 mpio2 mpio1 mpio0 m pio3t register multipurpose output 3-state enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 mpio6 mpio7 mpio5 mpio4 mpio3 mpio2 mpio1 mpio0 mpioinv register multipurpose input signal inversion enable bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 21 mpiosel [7:0] (default 0xff) multipurpose input/output pin select. this register defines the functions of the pins. a logic 1 (default) defines the pin for input and a logic "0" for output. 3.0 crystal oscillator / buffer the d152 includes an on-chip oscillator (xtal1 and xtal2). the crystal oscillator provides the system clock to the baud rate generators (brg) in each of the 2 uarts, the 16-bit general purpose timer/counter and internal logics. xtal1 is the input to the oscillator or external clock buffer input with xtal2 pin being the output. see programmable baud rate generator in the uart section for programming details. the on-chip oscillator is designed to use an industry standard microprocessor crystal (parallel resonant with 10-22 pf capacitance load, 100ppm) connected externally between the xtal1 and xtal2 pins ( see figure 9 ). alternatively, an external clock can be connected to the xtal1 pin to clock the internal 2 baud rate generators for standard or custom rates. typically, the oscillator connections are shown in figure 9 . for further reading on oscillator circuit please see application note dan108 on exars web site. 4.0 transmit and receive data there are two methods to load transmit data and unload receive data from each uart channel. first, there is a transmit data register and receive data register for each uart channel in the device configuration register set to ease programming. these registers support 8, 16 , 24 and 32 bits wide format. in the 32-bit format, it increases the data transfer rate on the pci bus. additionally, a special register location provides receive data byte with its associated error tags. this is a 16-bit or 32-bit read operation where the line status register (lsr) content in the uart channel register is paired along with the data byte. this operation further facilitates data unloading with the error tags without having to read the lsr register separately. furthermore, the XR17D152 supports pci burst mode for read/write operation of up to 64 bytes of data. the second method is through each uart channels transmit holding register (thr) and receive holding register (rhr). the thr and rhr registers are 16550 compatible so their access is limited to 8-bit format. the software driver must s eparately read the lsr content for the associated e rror tags before reading the data byte. f igure 9. t ypical oscillator connections mpio6 mpio7 mpio5 mpio4 mpio3 mpio2 mpio1 mpio0 mpiosel register multipurpose input/output selection bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 c1 22-47pf c2 22-47pf 14.7456 mhz xtal1 xtal2 r=300k to 400k
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 22 4.1 data loading and unloading via 32-bit pci burst transfers the XR17D152 supports pci burst read and pci burst write transactions anywhere in the mapped memory region (except reserved areas). in addition, to utilize this feature fully, the device provides a separate memory location (apart from the 16550 register set) where the rx and the tx fifo can be read from/written to, as shown in table 2 on page 12 . the following is an extract from the table showing the burstable memory locations: channel 0: rx fifo : 0x100 - 0x13f (64 bytes) tx fifo : 0x100 - 0x13f (64 bytes) rx fifo + status : 0x180 - 0x1ff (64 bytes data + 64 bytes status) channel 1: rx fifo : 0x300 - 0x33f (64 bytes) tx fifo : 0x300 - 0x33f (64 bytes) rx fifo + status : 0x380 - 0x3ff (64 bytes data + 64 bytes status) 4.1.1 normal rx fifo data unloading at locations 0x100 (channel 0) and 0x300 ( channel 1) the rx fifo data (up to the maximum 64 bytes) can be read out in a single burst 32-bit read operation (maximum 16 dword reads) at memory locations 0x100 (channel 0) and 0x300 (channel 1). this operation is at least 16 times faster than reading the data in 64 separate 8-bit memory reads of rhr register (0x000 for channel 0 and 0x200 for channel 1). 4.1.2 special rx fifo data unloading at locations 0x180 (channel 0) and 0x380 (channel 1) the XR17D152 also provides the same rx fifo data along with the lsr status information of each byte side- by-side, at locations 0x180 (channel 0) and 0x380 (channel 1). the entire rx data along with the status can be downloaded in a single pci burst read operation of 32 dword reads. the status and data bytes must be read in 16 or 32 bits format to maintain data integrity. the following tables show this clearly. r ead rx fifo, with n o e rrors b yte 3 b yte 2b yte 1b yte 0 read n+0 to n+3 fifo data n+3 fifo data n+2 fifo data n+1 fifo data n+0 read n+4 to n+7 fifo data n+7 fifo data n+6 fifo data n+5 fifo data n+4 etc. pci bus data bit-31 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 receive data byte n+3 receive data byte n+2 receive data byte n+1 receive data byte n+0 pci bus data bit-0 channel 0 to 1 receivedata in 32-bit alignment through the configuration register address 0x0100 and 0x0300
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 23 4.1.3 tx fifo data loading at locations 0x100 (channel 0) and 0x300 (channel 1) the tx fifo data (up to the maximum 64 bytes) can be loaded in a single burst 32-bit write operation (maximum 16 dword writes) at memory locations 0x100 (channel 0) and 0x300 (c hannel 1). 4.2 fifo data loading and unloading through the uart channel registers, thr and rhr in 8-bit format the thr and rhr register address for channel 0 to channel 1 is shown in table 8 below. the thr and rhr for each channel 0 tand 1 are located sequentially at address 0x 0000 and 0x0200. transmit data byte is loaded to the thr when writing to that address and receive data is unloaded from the rhr register when reading that r ead rx fifo, with lsr e rrors b yte 3 b yte 2b yte 1b yte 0 read n+0 to n+1 fifo data n+1 lsr n+1 fifo data n+0 lsr n+0 read n+2 to n+3 fifo data n+3 lsr n+3 fifo data n+2 lsr n+2 etc w rite tx fifo b yte 3 b yte 2b yte 1b yte 0 write n+0 to n+3 fifo data n+3 fifo data n+2 fifo data n+1 fifo data n+0 write n+4 to n+7 fifo data n+7 fifo data n+6 fifo data n+5 fifo data n+4 etc. pci bus data bit-31 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 receive data byte n+1 line status register n+1 receive data byte n+0 line status register n+0 pci bus data bit-0 channel 0 to 1 receive data with line status reg ister in a 32-bit ali gnment through the configuration register address 0x0180 and 0x0380 pci bus data bit-31 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 transmit data byte n+3 transmit data byte n+2 transmit data byte n+1 transmit data byte n+0 pci bus data bit-0 channel 0 to 1 transmit data in 32-bit alignment through the configuration register add ress 0x0100 and 0x0300
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 24 address. both thr and rhr registers are 16c550 compatible in 8-bit format, so each bus operation can only write or read in bytes. 5.0 uart there are 2 uarts [channels 1:0] in the d152. each has its own 64-byte of transmit and receive fifo, a set of 16550 compatible control and status registers, and a baud rate generator for individual channel data rate setting. eight additional registers per uart were added for the exar enhanced features. 5.1 programmable baud rate generator each uart has its own baud rate generator (brg) with a prescaler for the transmitter and receiver. the prescaler is controlled by a software bit in the mcr register. the mcr register bit-7 sets the prescaler to divide the input crystal or external clock by 1 or 4. the output of the prescaler clocks to the brg. the brg further divides this clock by a programmable divisor between 1 and (2 16 -1) to obtain a 16x or 8x sampling clock of the serial data rate. the sampling clock is used by the transmitter for data bit shifting and receiver for data sampling. the brg divisor (dll and dlm registers) defaults to a random value upon power up. therefore, the brg must be programmed during initialization to the ope rating data rate. programming the baud rate generator registers dlm and dll provides the capability for selecting the operating data rate. ta b l e 9 shows the standard data rates available with a 14.7456 mhz crystal or external clock at 16x clock rate. at 8x sampling rate, these data rates would double. when using a non-standard data rate crystal or external clock, the divisor value can be calculated with the following equation(s). t able 8: t ransmit and r eceive d ata r egister in b yte format , 16c550 compatible f igure 10. b aud r ate g enerator divisor (decimal) = (xtal1 clock frequency / prescaler) / (serial data rate x 16), with 8xmode [1:0] is 0 divisor (decimal) = (xtal1 clock frequency / prescaler) / (serial data rate x 8), with 8xmode [1:0] is 1 thr and rhr address locations for ch0 to ch1 (16c550 compatible) ch0 0x000 write thr ch0 0x000 read rhr ch1 0x200 write thr ch1 0x200 read rhr bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 xtal1 xtal2 crystal osc/ buffer mcr bit-7=0 (default) mcr bit-7=1 dll and dlm registers prescaler divide by 1 prescaler divide by 4 16x or 8x sampling rate clock to transmitter and receiver to channel 1 baud rate generator logic
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 25 5.2 automatic hardware (rts/cts or dtr/dsr) flow control operation automatic rts/dtr and cts/dsr flow control, also known as hardware flow control, is used to prevent data overrun to the local receiver fifo and remote receiver fifo. the rts#/dtr# output pin is used to request remote unit to suspend/restart data transmission while the cts#/dsr# input pin is monitored to suspend/ restart local transmitter. the auto rts/dtr and auto cts/dsr flow control features are individually selected to fit specific application requirement and enabled through efr bit-6 and 7 and mcr bit-2 for either rts/cts or dtr/dsr control signals. the auto rts/dtr function must be started by asserting rts/dtr# output pin (mcr bit-0 or 1 to logic 1) after it is enabled. figure 11 below explains how it works. two interrupts associated with rts/dtr and cts/dsr flow control have been added to give indication when rts/dtr# pin or cts/dsr# pin is de-asserted during operation. the rts/dtr and cts/dsr interr upts must be first enabled by efr bit-4, and then enabled individually by ier bit-6 and 7, and chosen with mcr bit-2. automatic hardware flow control is selected by setting bits 6 (rts) and 7 (cts) of the efr register to logic 1. if cts# pin transitions from logic 0 to logic 1 indicting a flow control request, isr bit-5 will be set to logic 1, (if enabled via ier bit 6-7), and the uart will suspend tx transmissions as soon as the stop bit of the character in process is shifted out. transmission is resumed after the cts# input returns to logic 0, indicating more data may be sent. t able 9: t ypical data rates with a 14.7456 mh z crystal or external clock at 16x s ampling o utput data rate mcr bit-7=1 o utput data rate mcr bit-7=0 d ivisor for 16x clock (decimal) d ivisor for 16x clock (hex) dlm p rogram v alue (hex) dll p rogram v alue (hex) d ata r ate e rror (%) 100 400 2304 900 09 00 0 600 2400 384 180 01 80 0 1200 4800 192 c0 00 c0 0 2400 9600 96 60 00 60 0 4800 19.2k 48 30 00 30 0 9600 38.4k 24 18 00 18 0 19.2k 76.8k 12 0c 00 0c 0 38.4k 153.6k 6 06 00 06 0 57.6k 230.4k 4 04 00 04 0 115.2k 460.8k 2 02 00 02 0 230.4k 921.6k 1 01 00 01 0
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 26 f igure 11. a uto rts/dtr and cts/dsr f low c ontrol o peration the local uart (uarta) starts data transfer by asserting -rtsa# (1). rtsa# is normally connected to ctsb# (2) of remote uart (uartb). ctsb# allows its transmitter to send data (3). txb data arrives and fills uarta receive fifo (4). when rxa data fills up to its receive fifo trigger level, uarta activates its rxa data ready interrupt (5) and con- tinues to receive and put data into its fifo. if interrupt service latency is long and data is not being unloaded, u arta monitors its receive data fill level to match the upper threshold of rts delay and de-assert rtsa# (6). ctsb# fol lows (7) and request uartb transmitter to suspend data transfer. uartb stops or finishes sending the data bits in its trans- mit shift register (8). when receive fifo data in uarta is unloaded to match the lower threshold of rts delay (9), uarta re-asserts rtsa# (10), ctsb# recognizes the change (11) and restarts its transmitter and data flow again until next receive fifo trigger (12). this same event applies to the reverse direction when uarta sends data to uartb with rtsb# and ctsa# contr olling the data flow. rtsa# ctsb# rxa txb transmitter receiver fifo trigger reached auto rts trigger level auto cts monitor rtsa# txb rxa fifo ctsb# remote uart uartb local uart uarta on off on suspend restart rts high threshold data starts on off on assert rts# to begin transmission 1 2 3 4 5 6 7 receive data rts low threshold 9 10 11 receiver fifo trigger reached auto rts trigger level transmitter auto cts monitor rtsb# ctsa# rxb txa inta (rxa fifo interrupt) rx fifo trigger level rx fifo trigger level 8 12 rtscts1
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 27 5.3 infrared mode each uart in the d152 includes the infrared encoder and decoder compatible to the irda (infrared data association) version 1.0. the input pin enir conveniently activates both uart channels to start up in the infrared mode. this global control pin enables the mcr bit-6 function in every uart channel register. after power up or a reset, the software can overwrite mcr bit-6 if so desired. enir and mcr bit-6 also disable its receiver while the transmitter is sending data. this prevents the echoed data from going to the receiver. the global activation enir pin prevents the infrared emitter from turning on and drawing large amount of current while the system is starting up. when the infrared feature is enabled, the transmit data outputs, tx[1:0], would idle at logic zero level. likewise, the rx[1:0] i nputs assume an idle level of logic zero. the infrared encoder sends out a 3/16 of a bit wide pulse for each 0 bit in the transmit data stream. this signal encoding reduces the on-time of the infrared led, hence reduces the power consumption. see figure 12 below. the infrared decoder receives the input pulse from the infrared sensing diode on rx pin. each time it senses a light pulse, it returns a logic zero to the data bit stream. the rx input si gnal may be inverted prior deli vered to the input of the decoder via internal register setting. this option supports active low instead of normal active high pulse from some infrared modules on the market. f igure 12. i nfrared t ransmit d ata e ncoding and r eceive d ata d ecoding character data bits start stop 0000 0 11 111 tx data transmit ir pulse (tx pin) bit time 1/2 bit time 3/16 bit time irencoder-1 character data bits start stop 0000 0 11 111 bit time 1/16 clock delay irdecoder-1 rx data receive ir pulse (rx pin)
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 28 5.4 internal loopback each uart channel provides an internal loopback capability for system diagnostic. the internal loopback mode is enabled by setting mcr register bit-4 to logic 1. all regular uart functions operate normally. figure 13 shows how the modem port signals are re-configured. transmit data from the transmit shift register output is internally routed to the receive shift register input allowing the system to receive the same data that it was sending. the tx pin is held at logic 1 or mark condition while rts# and dtr# are de-asserted, and cts#, dsr# cd# and ri# inputs are ignored. 5.5 uart channel configuration registers and a ddress dec oding. the 2 sets of uart configuration registers are decoded using address lines a9 to a11 as shown below. f igure 13. i nternal l oop b ack f unction in each uart c hannel a11 a10 a9 uart c hannel s election 000 0 001 1 tx [1:0] rx [1:0] modem / general purpose control logic internal bus lines and control signals rts# [1:0] mcr bit-4=1 vcc vcc vcc transmit shift register receive shift register cts# [1:0] dtr# [1:0] dsr# [1:0] ri# [1:0] cd# [1:0] op1# op2# rts# cts# dtr# dsr# ri# cd#
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 29 address lines a0 to a3 select the 16 registers in each channel. the first 8 registers are 16550 compatible with the exar enhanced feature registers located on next 8 addresses locations. addresses 0x080 to 0x093 comprise the device configuration registers and they reside in channel 0s space. . t able 10: uart channel configuration registers. a ddress r egister r ead /w rite c omments a3 a2 a1 a0 16550 c ompatible 0 0 0 0 rhr - receive holding register thr - transmit holding register read-only write-only lcr[7] = 0 0 0 0 0 dll - div latch low read/write lcr[7] = 1 0 0 0 1 dlm - div latch high read/write lcr[7] = 1 0 0 0 1 ier - interrupt enable register read/write lcr[7] = 0 0 0 1 0 isr - interrupt status register fcr - fifo control register read-only write-only 0 0 1 1 lcr - line control register read/write 0 1 0 0 mcr - modem control register read/write 0 1 0 1 lsr - line status register reserved read-only write-only 0 1 1 0 msr - modem status register - auto rs485 delay read-only write-only 0 1 1 1 spr - scratch pad reg read/write e nhanced r egister 1 0 0 0 fctr read/write 1 0 0 1 efr - enhanced function register read/write 1 0 1 0 txcnt - transmit fifo level counter txtrg - transmit fifo trigger level read-only write-only 1 0 1 1 rxcnt - receive fifo level counter rxtrg - receive fifo trigger level read-only write-only 1 1 0 0 xoff-1 - xoff character 1 xchar write-only read-only xon,xoff rcvd. flags 1 1 0 1 xoff-2 - xoff character 2 reserved write-only read-only 1 1 1 0 xon-1 - xon character 1 reserved write-only read-only 1 1 1 1 xon-2 - xon character 2 reserved write-only read-only
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 30 t able 11: uart channel configuration registers description. s haded bits are enabled by efr b it -4. a ddress a3-a0 r eg n ame r ead / w rite b it -7 b it -6 b it -5 b it -4 b it -3 b it -2 b it -1 b it -0 c omment 0 0 0 0 rhr r bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7]=0 0 0 0 0 thr w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7]=0 0 0 0 0 dll r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7]=1 0 0 0 1 dlm r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7]=1 0 0 0 1 ier r/w 0/ 0/ 0/ 0 modem status int. enable rx line status int. enable tx empty int. enable rx data int. enable cts/ dsr# int. enable rts/ dtr# int. enable xon/xoff/ sp. char. int. enable 0 0 1 0 isr r fifos enable fifos enable 0/ 0/ int source bit-3 int source bit-2 int source bit-1 int source bit-0 delta- flow cntl xoff/spe- cial char 0 0 1 0 fcr w rx fifo tr i g g e r rx fifo tr i g g e r 0/ 0/ dma mode tx fifo reset rx fifo reset fifos enable tx fifo trigger tx fifo tr i g g e r 0 0 1 1 lcr r/w divisor enable set tx break set parity even par- ity parity enable stop bits word length bit-1 word length bit-0 0 1 0 0 mcr r/w 0/ 0/ 0/ internal lopback enable (op2) 1 (op1) 1 rts# pin control dtr# pin control brg prescaler ir enable xonany rts/dtr flow sel 0 1 0 1 lsr r/w rx fifo e rror tsr empty thr empty rx break rx fram- ing error rx parity error rx over- run rx data ready 0 1 1 0 msr r cd ri dsr cts delta cd# delta ri# delta dsr# delta cts# msr w rs485 dly-3 rs485 dly-2 rs485 dly-1 rs485 dly- 0 reserved reserved reserved reserved 0 1 1 1 spr r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 user data 1 0 0 0 fctr r/w trg ta bl e bit-1 trg table bit-0 auto rs485 enable invert ir rx input rts/dtr hyst bit-3 rts/dtr hyst bit-2 rts/dtr hyst bit-1 rts/dtr hyst bit-0 1 0 0 1 efr r/w auto cts/ dsr enable auto rts/ dtr enable special char select enable ier [7:5], isr [5:4], fcr[5:4], mcr[7:5,2] msr[7:4] software flow cntl bit-3 software flow cntl bit-2 software flow cntl bit-1 software flow cntl bit-0 1 0 1 0 txcnt r bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 0 1 0 txtrg w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 0 1 1 rxcnt r bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 0 1 1 rxtrg w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 31 n ote : mcr bits 2 and 3 (op1 and op2 outputs) are not available in the XR17D152. they are present for 16c550 compatibility during internal loopback, see figure 13 . 5.6 transmitter the transmitter section comprises of 64 bytes of fifo, a byte-wide transmit holding register (thr) and an 8- bit transmit shift register (tsr). thr receives a data b yte from the host ( non-fifo m ode) or a data byte from the fifo when the fifo is enabled by fcr bit-0. tsr shifts out every data bit with the 16x or 8x internal clock. a bit time is 16 or 8 clock periods. the transmitter sends the start bit followed by the number of data bits, inserts the proper parity bit if enable, and adds the stop bit(s). the status of the thr and tsr are reported in the line status register (lsr bit-5 and bit-6). 5.6.1 transmit holding register (thr) the transmit holding register is an 8-bit register providing a data interface to the host processor. the host writes transmit data byte to the thr to be converted into a serial data stream including start-bit, data bits, parity-bit and stop-bit(s). the least-significant-bit (bit-0) becomes first data bit to go out. the thr is also the input register to the transmit fifo of 64 bytes when fifo operation is enabled by fcr bit-0. a thr empty interrupt can be generated when it is enabled in ier bit-1. 5.6.2 transmitter operation in non-fifo the host loads transmit data to thr one character at a time. the thr empty flag (lsr bit-5) is set when the data byte is transferred to tsr. thr flag can gener ate a transmit empty interrupt (isr bit-1) when it is enabled by ier bit-1. the tsr flag (lsr bit-6) is set when tsr becomes completely empty. 1 1 0 0 xchar r xon det. indicator xoff det. indicator self-clear after read 1 1 0 0 xoff1 w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 0 1 xoff2 w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 1 0 xon1 w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 1 1 xon2 w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 f igure 14. t ransmitter o peration in non -fifo m ode t able 11: uart channel configuration registers description. s haded bits are enabled by efr b it -4. a ddress a3-a0 r eg n ame r ead / w rite b it -7 b it -6 b it -5 b it -4 b it -3 b it -2 b it -1 b it -0 c omment transmit holding register (thr) transm it shift register (tsr) data byte l s b m s b thr interrupt (isr bit-1) enabled by ier bit-1 txnofifo1 16x or 8x clock (8xmode register)
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 32 5.6.3 transmitter operation in fifo the host may fill the transmit fifo with up to 64 bytes of transmit data. the thr empty flag (lsr bit-5) is set whenever the fifo is empty. the thr empty flag can gener ate a transmit empty interrupt (isr bit-1) when the amount of data in the fifo falls below its programmed trigger level (see txtrg register). the transmit empty interrupt is enabled by ier bit-1. the tsr flag (lsr bit-6) is set when tsr becomes completely empty. furthermore, with the rs485 half-duplex direction control enabled (fctr bit-5=1) the source of the transmit empty interrupt changes to tsr empty instead of thr empty. this is to ensure the rts# output is not changed until the last stop bit of the last character is shifted out. 5.6.4 auto rs485 operation the auto rs485 half-duplex direction control changes the behavior of the transmitter when enabled during powerup or reset by the e n485# pin or in software by fctr bit-5. it de-asserts rts# or dtr# after a specified delay indicated in msr[7:4] following the last stop bit of the last character that has been transmitted. this helps in turning around the transceiver to receive the remote stations response. the delay optimizes the time needed for the last transmission to reach the farthest station on a long cable network before switching off the line driver. this delay prevents undesirable line signal disturbance that causes signal degradation. it also changes the transmitter empty interrupt to tsr empty instead of thr empty. 5.7 receiver the receiver section contains an 8-bit receive shift register (rsr) and receive holding register (rhr). the rsr uses the 16x or 8x clock for timing. it verifies and validates every bit on the incoming character in the middle of each data bit. on the falling edge of a start or false start bit, an internal receiver counter starts counting at the 16x or 8x clock rate. after 8 or 4 clocks the start bit period should be at the center of the start bit. at this time the start bit is sampled and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false character. the rest of the data bits and stop bits are sampled and validated in this same manner to prevent false framing. if there were any error(s), they are reported in the lsr bits 1-4 and an lsr interrupt is generated immediately if ier bit-2 is enabled. upon unloading the receive data byte from rhr, the receive fifo pointer is bumped and the lsr bits are immediately updated to reflect the status of the data byte in the rhr. the rhr can generate a receive data ready interrupt upon receiving a character or delay until it reaches the fifo trigger level. furthermore, data delivery to the host is guaranteed by a receive data ready time-out function when receive data does not reach the receive fifo trigger level. this time-out delay is 4 word lengths as defined by lcr[1:0] plus 12 bits time. the rhr interrupt is enabled by ier bit-0. f igure 15. t ransmiitter o peration in fifo and f low c ontrol m ode transm it data shift register (tsr ) transmit data byte thr interrupt (isr bit-1) falls below programmed trigger level (txtrg) and then when becomes empty. fifo is enabled by fcr bit-0=1 transmit fifo (64-byte) txfifo1 16x or 8x clock (8xmode register) auto cts flow control (cts# pin) auto software flow control flow control characters (xoff1/2 and xon1/2 reg.
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 33 5.7.1 receiver operation in non-fifo mode 5.7.2 receiver operation with fifo 5.8 registers receive holding register (rhr) the receive holding register is an 8-bit register that holds a receive data byte from the receive shift register (rsr). it provides the receive data interface to the host processor. the host reads the receive data byte on this register whenever a data byte is transferred from the rsr. the rhr is also part of the receive fifo of 64 bytes by 11-bit wide, 3 extra bits are for the error tags in lsr. when the fifo is enabled by fcr bit-0, the rhr contains the first data character received by the fifo. after the rhr is read, the next character byte is loaded into the rhr and the errors associated with the current data byte are immediately updated in the lsr bits 1-4. f igure 16. r eceiver o peration in non -fifo m ode f igure 17. r eceiver o peration in fifo and f low c ontrol m ode r e c e iv e d a ta s h ift register (rsr) receive d ata b yte and errors rhr interrupt (isr bit-2) receive data holding register (rhr) 16x or 8x clock (8xmode register) receive data characters d ata b it v alidation e rror tags in lsr bits 3:1 receive data shift register (rsr) rxfifo1 16x or 8x sampling clock (8xmode reg.) error tags (64-sets) error tags in lsr bits 3:1 64 bytes by 11- bit wide fifo receive data characters fifo trigger=48 example: - fifo trigger level set at 48 bytes - rts/dtr hyasteresis set at +/-8 chars. data fills to 56 data falls to 40 data bit validation receive data fifo (64-byte) receive data receive data byte and errors rhr interrupt (isr bit-2) is programmed at fifo trigger level (rxtrg). fifo is enable by fcr bit-0=1 rts#/dtr# de-asserts when data fills above the trigger level to suspend remote transmitter. enable by efr bit-6=1, mcr bit-2. rts#/dtr# re-asserts when data falls below the trigger level to restart remote transmitter. enable by efr bit-6=1, mcr bit-2.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 34 baud rate generator d ivisors (dll and dlm) the baud rate generator (brg) is a 16-bit counter that generates the data rate for the transmitter and receiver. the rate is programmed through registers dll and dlm which are only accessible when lcr bit-7 is set to logic 1. see programmable baud rate generator section for more detail. interrupt enable register (ier) the interrupt enable register (ier) masks the interrupts from receive data ready, transmit empty, line status and modem status registers. these interrupts are reported in the interrupt status register (isr) register and also encoded in int (int0-int3) register in the device configuration registers. ier versus receive fifo interrupt mode operation when the receive fifo (fcr bit-0 = logic 1) and receive interrupts (ier bit-0 = logic 1) are enabled, the rhr interrupts (see isr bits 3 and 4) status will reflect the following: a. the receive data available interrupts are issued to the host when the fifo has reached the programmed trigger level. it will be cleared w hen the fifo drops below the programmed trigger level. b. fifo level will be reflected in the isr register when the fifo trigger level is reached. both the isr register status bit and the interrupt will be cleared when the fifo drops below the trigger level. c. the receive data ready bit (lsr bit-0) is set as soon as a character is transferred from the shift register to the receive fifo. it is reset when the fifo is empty. ier versus receive/transmit fifo polled mode operation when fcr bit-0 equals a logic 1 for fifo enable; resetting ier bits 0-3 enables the d152 in the fifo polled mode of operation. since the receiver and transmitter have separate bits in the lsr either or both can be used in the polled mode by selecting respective transmit or rece ive control bi t(s). a. lsr bit-0 indicates there is data in rhr or rx fifo. b. lsr bit 1-4 provides the type of receive data errors encountered for the data byte in rhr, if any. c. lsr bit-5 indicates thr is empty. d. lsr bit-6 indicates when both the transmit fifo and tsr are empty. e. lsr bit-7 indicates a data error in at least one character in the rx fifo. ier[0]: rhr interrupt enable the receive data ready interrupt will be issued w hen rhr has a data character in the non-fifo mode or when the receive fifo has reached the programmed trigger level in the fifo mode. logic 0 = disable the receive data ready interrupt (default). logic 1 = enable the receiver data ready interrupt. ier[1]: thr interrupt enable this interrupt is associated with bit-5 in the lsr register. an interrupt is issued whenever the thr becomes empty (non-fifo mode) or when data in the fifo falls below the programmed trigger level in fifo mode. logic 0 = disable transmit holding register empty interrupt (default). logic 1 = enable transmit holding register empty interrupt. ier[2]: receive line status interrupt enable if any of the lsr register bits 1, 2, 3 or 4 is a logic 1, it will generate an interrupt to inform the host controller about the error status of the current data byte in fifo. an interrupt is g enerated immediately w hen a character with an error has been receiv ed. logic 0 = disable the receiver line status interrupt (default). logic 1 = enable the receiver line status interrupt. ier[3]: modem status interrupt enable logic 0 = disable the modem status register interrupt (default). logic 1 = enable the modem status register interrupt.
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 35 ier[4]: reserved ier[5]: xoff interrupt enable (requires efr bit-4=1) logic 0 = disable the software flow control, receive xoff interrupt (default). logic 1 = enable the software flow control, receive xoff interrupt. see software flow control section for details. ier[6]: rts# output interrupt enable (requires efr bit-4=1) logic 0 = disable the rts# interrupt (default). logic 1 = enable the rts# interrupt. the uart issues an interrupt when the rts# output pin makes a transition from low to high. ier[7]: cts# input interrupt enable (requires efr bit-4=1) logic 0 = disable the cts# interrupt (default). logic 1 = enable the cts# interrupt. the uart issues an interrupt when cts# input pin makes a transition low to high. interrupt status register (isr) the uart provides multiple levels of prioritized interrupts to minimize external software interaction. the interrupt status register (isr) provides the user with six interrupt status bits. performing a read cycle on the isr will give the user the current highest pending interrupt level to be serviced, others queue up for next service. no other interrupts are acknowledged until the pending interrupt is serviced. the interrupt source table, ta b l e 1 2 , shows the data values (bit 0-5) for the six prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels. i nterrupt g eneration : lsr is by any of the lsr bits 1, 2, 3 and 4. rxrdy is by rx trigger level. rxrdy time-out is by the a 4-char plus 12 bits delay timer. txrdy is by lsr bit-5 in the non-fifo mode, tx trigger level setting in the fifo mode (or bit-6 in auto rs485 control). msr is by any of the msr bits 0, 1, 2 and 3. receive xon / xoff/special character is by detection of a xon, xoff or special character. cts#/dsr# is by a change of state on the input pin (from low to high) with auto flow control enabled, efr bit-7, and depending on selection on mcr bit-2. rts#/dtr# is when its receiver changes the state of the output pin (from low to high) during auto rts/dtr flow control enabled by efr bit-6 and selection of mcr bit-2. i nterrupt c learing : lsr interrupt is cleared by a read to the lsr register (but lsr status bits are not cleared). rxrdy interrupt is cleared by reading data until fifo falls below the trigger level. rxrdy time-out interrupt is cleared by emptying the rx fifo. txrdy interrupt is cleared by a read to the isr register. msr interrupt is cleared by a read to the msr register. xon or xoff character interrupt is cleared by a r ead to isr register. special character interrupt is cleared by a read to isr register or after the next character is received. rts#/dtr# and cts#/dsr# input status change interrupt is cleared by a read to the msr register.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 36 ] isr[0]: interrupt status logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine. logic 1 = no interrupt pending (default condition). isr[3:1]: interrupt status these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, 3 and 4 (see interrupt source ta b l e 1 2 ). isr[5:4]: interrupt status these bits are enabled w hen efr bit-4 is set to a logic 1. isr bit-4 indicates that the receiver detected a data match of the xon or xoff character(s). note that once set to a logic 1, the isr bit-4 will stay a logic 1 until a xon character is received. isr bit-5 indicates that cts#/dsr# or rts#/dtr# has changed state. isr[7:6]: fifo enable status these bits are set to a logic 0 when the fifos are disabled. they are set to a logic 1 when the fifos are enabled. fifo control register (fcr) this register is used to enable the fifos, clear the fifos, set the transmit/receive fifo trigger levels, and select the dma mode. the dma, and fifo m odes are defined as follows: fcr[0]: tx and rx fifo enable logic 0 = disable the transmit and receive fifo (default). logic 1 = enable the transmit and receive fifos. this bit must be set to logic 1 when other fcr bits are written or they will not be programmed. fcr[1]: rx fifo reset this bit is only active when fcr bit-0 is a logic 1. logic 0 = no receive fifo reset (default). logic 1 = reset the receive fifo pointers and fifo level counter logic (the receive shift register is not cleared or altered). this bit will return to a logic 0 after resetting the fifo. t able 12: i nterrupt s ource and p riority l evel p riority isr r egister s tatus b its s ource of the interrupt + l evel b it -5 b it -4 b it -3 b it -2 b it -1 b it -0 1 0 0 0 1 1 0 lsr (receiver line status register) 2 0 0 0 1 0 0 rxrdy (received data ready) 3 0 0 1 1 0 0 rxrdy (receive data time-out) 4 0 0 0 0 1 0 txrdy (transmitter holding register empty) 5 0 0 0 0 0 0 msr (modem status register) 6 0 1 0 0 0 0 rxrdy (received xon/xoff or special character) 7 1 0 0 0 0 0 cts#/dsr#, rts#/dtr# change of state x 0 0 0 0 0 1 none (default)
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 37 fcr[2]: tx fifo reset this bit is only active when fcr bit-0 is a logic 1. logic 0 = no transmit fifo reset (default). logic 1 = reset the transmit fifo pointers and fifo level counter logic (the transmit shift register is not cleared or altered). this bit will return to a logic 0 after resetting the fifo. fcr[3]: dma mode select this bit is only active when fcr bit-0 is a logic 1. this bit has no effect since txrdy and rxrdy pins are not available in this device. it is provided for legacy software. logic 0 = set dma to mode 0 (default). logic 1 = set dma to mode 1. fcr[5:4]: transmit fifo trigger select (logic 0 = default, tx trigger level = one) the fctr bits 6-7 are associated with these 2 bits by selecting one of the four tables. the 4 user selectable trigger levels in 4 tables are supported for compatibility reasons. these 2 bits set the trigger level for the transmit fifo interrupt. the uart will issue a transmit interrupt when the number of characters in the fifo falls below the selected trigger level, or when it gets empty in case that the fifo did not get filled over the trigger level on last re-load. ta b l e 1 3 below shows the selections. note that the receiver and the transmitter cannot use different trigger tables. whichever selection is made last applies to b oth the rx and tx side. fcr[7:6]: receive fifo trigger select (logic 0 = default, rx trigger level =1) the fctr bits 6-7 are associated with these 2 bits. these 2 bits are used to set the trigger level for the receiver fifo interrupt. ta b l e 1 3 shows the complete selections. note that the receiver and the transmitter cannot use different trigger tables. whichever selection is made last applies to b oth the rx and tx side.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 38 line control register (lcr) the line control register is used to specify the asynchronous data communication format. the word or character length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. lcr[1:0]: tx and rx word length select these two bits specify the word length to be transmitted or received. t able 13: t ransmit and r eceive fifo t rigger l evel s election fctr b it -7 fctr b it -6 fcr b it -7 fcr b it -6 fcr b it -5 fcr bit -4 r eceive t rigger l evel t ransmit t rigger l evel c ompatibility 00 0 0 1 1 0 1 0 1 00 1 (default) 4 8 14 1 (default) table-a. 16c550, 16c2550, 16c2552, 16c554, 16c580 compatible. 01 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 8 16 24 28 16 8 24 30 table-b. 16c650a compatible. 10 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 8 16 56 60 8 16 32 56 table-c. 16c654 compatible. 1 1xxxxprogrammable via rxtrg reg- ister programmable via txtrg reg- ister table-d. 16c850, 16c2850, 16c2852, 16c854, 16c864, 16c872 compatible. bit-1 bit-0 w ord length 0 0 5 (default) 01 6 10 7 11 8
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 39 lcr[2]: tx and rx stop-bit length select the length of stop bit is specified by this bit in conjunction with the programmed word length. lcr[3]: tx and rx parity select parity or no parity can be selected via this bit. the parity bit is a simple way used in communications for data integrity check. see ta b l e 1 4 for parity selection summary below. logic 0 = no parity. logic 1 = a parity bit is generated during the transmission while the receiver checks for parity error of the data character received. lcr[4]: tx and rx parity select if the parity bit is enabled with lcr bit-3 set to a logic 1, lcr bit-4 selects the even or odd parity fo rmat. logic 0 = odd parity is generated by forcing an odd number of logic 1s in the transmitted character. the receiver must be programmed to check the same format (default). logic 1 = even parity is generated by forcing an even the number of logic 1s in the transmitted character. the receiver must be programmed to check the same format. lcr[5]: tx and rx parity select if the parity bit is enabled, lcr bit-5 selects the forced parity format. lcr bit-5 = logic 0, parity is not forced (default). lcr bit-5 = logic 1 and lcr bit-4 = logic 0, parity bit is forced to a logical 1 for the transmit and receive data. lcr bit-5 = logic 1 and lcr bit-4 = logic 1, parity bit is forced to a logical 0 for the transmit and receive data. lcr[6]: transmit break enable when enabled the break control bit causes a break condition to be transmitted (the tx output is forced to a space, logic 0, state). this condition remains until disabled by setting lcr bit-6 to a logic 0. logic 0 = no tx break condition (default). logic 1 = forces the transmitter output (tx) to a space, logic 0, for alerting the remote receiver of a line break condition. bit-2 w ord length s top bit length (b it time ( s )) 0 5,6,7,8 1 (default) 1 5 1-1/2 1 6,7,8 2 t able 14: p arity selection lcr b it -5 lcr b it -4 lcr b it -3 p arity selection x x 0 no parity 001 odd parity 011 even parity 1 0 1 force parity to mark, 1 1 1 1 force parity to space, 0
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 40 lcr[7]: baud rate divisors enable baud rate generator divisor (dll/dlm) enable. logic 0 = data registers are selected (default). logic 1 = divisor latch registers are selected. modem control register (mcr) or general purpose outputs control the mcr register is used for controlling the serial/modem interface signals or general purpose inputs/outputs. mcr[0]: dtr# pins the dtr# pin may be used for automatic hardware flow control enabled by efr bit-6 and mcr bit-2=1. if the modem interface is not used, this output may be used for general purpose. logic 0 = force dtr# output to a logic 1 (default). logic 1 = force dtr# output to a logic 0. mcr[1]: rts# pins the rts# pin may be used for automatic hardware flow control by enabled by efr bit-6 and mcr bit-2=0. if the modem interface is not used, this output may be used for general purpose. logic 0 = force rts# output to a logic 1 (default). logic 1 = force rts# output to a logic 0. mcr[2]: dtr# or rts# for auto flow control the op1 output is not available in the XR17D152. it is present for 16c550 compatibility during internal loopback. see figure 13 . logic zero is default. dtr# or rts# auto hardware flow control select. this bit is in effect only when auto rts/dtr is enabled by efr bit-6. logic 0 = uses rts#/cts# pins for auto hardware flow control. logic 1 = uses dtr#/dsr# pin is used for auto hardware flow control. mcr[3]: (op2) the op2 output is not available in the XR17D152. it is present for 16c550 compatibility during internal loopback. see figure 13 . logic zero is default. mcr[4]: internal loopback enable logic 0 = disable loopback mode (default). logic 1 = enable local loopback mode, see loopback section and figure 13 . mcr[5]: xon-any enable logic 0 = disable xon-any function (for 16c550 compatibility) (default). logic 1 = enable xon-any function. in this mode any rx character received will enable xon, resume data transmission. mcr[6]: infrared encoder/decoder enable this bit overrides the enir pin selection. logic 0 = disable the infrared mode (default). logic 1 = enable infrared irda receive and transmit inputs/outputs. while in this mode, the tx/rx output/ input are routed to the infrared encoder/decoder. the data input and output levels will conform to the irda infrared interface requirement. as such, while in this mode the infrared tx output will be a logic 0 during idle data conditions. fctr bit-4 may be selected to invert the rx input signal level going to the decoder for infrared modules that provide rather an inverted output.
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 41 mcr[7]: clock prescaler select logic 0 = divide by one. the input clock from the crystal or external clock is fed directly to the programmable baud rate generator without further modification, i.e., divide by one (default). logic 1 = divide by four. the prescaler divides the input clock from the crystal or external clock by four and feeds it to the programmable baud rate generator, hence, data rates become one forth. line status register (lsr) this register provides the status of data transfers between the uart and the host. if ier bit-2 is enabled, an lsr interrupt is generated when a received data error occurs due to overrrun, parity or framing. if lsr[0] = logic 0, then lsr bits 1-4 are inva lid. lsr[0]: receive data ready indicator logic 0 = no data in receive holding register or fifo (default). logic 1 = data has been received and is saved in the receive holding register or fifo. lsr[1]: receiver overrun tag logic 0 = no overrun error (default). logic 1 = overrun error. a data overrun error condition occurred in the receive shift register. this happens when additional data arrives while the fifo is full. in this case the previous data in the receive shift register is overwritten. note that under this condition the data byte in the receive shift register is not transferred into the fifo, therefore the data in the fifo is not corrupted by the error. automatic hardware (rts/cts) or software (xon/xoff) flow control should be considered if this condition persists. lsr[2]: receive data parity error tag logic 0 = no parity error (default). logic 1 = parity error. the receive character in rhr does not have correct parity information and is suspect. this error is associated with the character available for reading in rhr. lsr[3]: receive data framing error tag logic 0 = no framing error (default). logic 1 = framing error. the receive character did not have a valid stop bit(s). this error is associated with the character available for reading in rhr. lsr[4]: receive break flag logic 0 = no break condition (default). logic 1 = the receiver received a break signal (rx was a logic 0 for one character frame time). in the fifo mode, only one break character is loaded into the fifo. the break indication remains until the rx input returns to the idle condition, mark or logic 1. lsr[5]: transmit holding register empty flag this bit is the transmit holding register empty indicator. this bit indicates that the transmitter is ready to accept a new character for transmission. in addition, this bit ca uses the uart to issue an interrupt to the host when the thr interrupt enable is set. the thr bit is set to a logic 1 when the last data byte is transferred from the transmit holding register to the transmit shift register. the bit is reset to logic 0 concurrently with the data loading to the transmit holding register by the host. in the fifo mode this bit is set when the transmit fifo is empty; it is cleared w hen at least 1 byte is written to the transmit fifo. lsr[6]: transmit shift register empty flag this bit is the transmit shift register empty indicator. this bit is set to a logic 1 whenever the transmitter goes idle. it is set to logic 0 w hene ver either the thr or tsr contains a data character. in the fifo mode this bit is set to one whenever the transmit fifo and transmit shift register are both empty.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 42 lsr[7]: receive fifo data error flag logic 0 = no fifo error (default). logic 1 = an indicator for the sum of all error bits in the rx fifo. at least one parity error, framing error or break indication is in the fifo data. this bit clears when there is no more error(s) in the fifo. modem status register (msr) - read only this register provides the current state of the modem interface signals, or other peripheral device that the uart is connected. lower four bits of this register are used to indicate the changed information. these bits are set to a logic 1 whenever a signal from the modem changes state. these bits may be used as general purpose inputs/outputs when they are not used with modem signals. msr[0]: delta cts# input flag logic 0 = no change on cts# input (default). logic 1 = the cts# input has changed state since the last time it was moni tored. a modem s tatus interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[1]: delta dsr# input flag logic 0 = no change on dsr# input (default). logic 1 = the dsr# input has changed state s ince the last time it was monitored. a modem s tatus interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[2]: delta ri# input flag logic 0 = no change on ri# input (default). logic 1 = the ri# input has changed from a logic 0 to a logic 1, ending of the ringing si gnal. a m odem status interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[3]: delta cd# input flag logic 0 = no change on cd# input (default). logic 1 = indicates that the cd# input has changed state since the last time it was monitored. a modem status interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[4]: cts input status cts# pin may function as automatic hardware flow control signal input if it is enabled and selected by auto cts (efr bit-7) and rts/cts flow control select (mcr bit-2). auto cts flow control allows starting and stopping of local data transmissions based on the modem cts# signal. a logic 1 on the cts# pin will stop uart transmitter as soon as the current character has finished transmission, and a logic 0 will resume data transmission. normally msr bit-4 bit is the compliment of the cts# input. however in the loopback mode, this bit is equivalent to the rts# bit in the mcr register. the cts# input may be used as a general purpose input when the modem interface is not used. msr[5]: dsr input status dsr# (active high, logical 1). this input may be used for auto dtr/dsr flow control function, see auto \hardware flow control section. normally this bit is the compliment of the dsr# input. in the loopback mode, this bit is equivalent to the dtr# bit in the mcr register. the dsr# input may be used as a general purpose input when the modem interface is not used. msr[6]: ri input status ri# (active high, logical 1). normally this bit is the compliment of the ri# input. in the lo opback m ode this bit is equivalent to bit-2 in the mcr register. the ri# input may be used as a general purpose input when the modem interface is not used.
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 43 msr[7]: cd input status cd# (active high, logical 1). normally this bit is the compliment of the cd# input. in the loopback mode this bit is equivalent to bit-3 in the mcr register. the cd# input may be used as a general purpose input when the modem interface is not used. modem status register (msr) - write only the upper four bits 4-7 of this register sets the delay in number of bits time for the auto rs485 turn around from transmit to receive. msr [7:4] when auto rs485 feature is enabled (fctr bit-5=1) and rts# output is connected to the enable input of a rs-485 transceiver. these 4 bits select from 0 to 15 bit-time delay after the end of the last stop-bit of the last transmitted character. this delay controls when to change the state of rts# output. this delay is very useful in long-cable networks. ta b l e 1 5 shows the selection. the bits are enabled by efr bit-4. scratch pad register (spr) - read/write this is an 8-bit general purpose register for the user to store temporary data. the content of this register is preserved during sleep mode but becomes 0xff (default) after a reset or a power off-on cycle. t able 15: a uto rs485 h alf - duplex d irection c ontrol d elay from t ransmit - to -r eceive msr[7] msr[6] msr[5] msr[4] d elay in d ata b it ( s ) t ime 0000 0 0001 1 0010 2 0011 3 0100 4 9101 5 0110 6 0111 7 1000 8 1001 9 1010 10 1011 11 1100 12 1101 13 1110 14 1111 15
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 44 feature control register (fctr) - read/write fctr [3:0] - auto rts/dtr flow control hysteresis select these bits select the auto rts/dtr flow control hysteresis and only valid when tx and rx trigger table-d is selected (fctr bit-6 and 7 are set to logic 1). the rts /dtr hysteresis is referenced to the rx fifo trigger level. after reset, these bits are set to logic 0 selecting the next fifo trigger level for hardware flow control. ta b l e 1 6 below shows the 16 selectable hysteresis levels. fctr[4]: infrared rx input logic select logic 0 = select rx input as active high encoded irda data, normal, (default). logic 1 = select rx input as active low encoded irda data, inverted. fctr[5]: auto rs485 enable this bit overrides the en485# pin selection. auto rs485 half duplex control enable/disable. logic 0 = standard st16c550 mode. transmitter generates an interrupt when transmit holding register (thr) becomes empty. transmit shift register (tsr) may still be shifting data bit out. logic 1 = enable auto rs485 half duplex direction control. rts# output changes its logic level from 1 to 0 when finished sending the last stop bit of the last character out of the tsr register. it changes back to logic level 1 from 0 when a data byte is loaded into the thr or transmit fifo. the change to logic 1 occurs prior sending the start-bit. it also changes the transmitter interrupt from transmit holding to transmit shift register (tsr) empty. t able 16: 16 s electable h ysteresis l evels w hen t rigger t able -d is s elected fctr b it -3 fctr b it -2 fctr b it -1 fctr b it -0 rts/dtr h ysteresis ( characters ) 0000 0 0001 +/- 4 0010 +/- 6 0011 +/- 8 0100 +/- 8 0101 +/- 16 0110 +/- 24 0111 +/- 32 1100 +/- 12 1101 +/- 20 1110 +/- 28 1111 +/- 36 1000 +/- 40 1001 +/- 44 1010 +/- 48 1011 +/- 52
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 45 fctr[7:6]: tx and rx fifo trigger table select these 2 bits select the transmit and receive fifo trigger level table a, b, c or d. when table a, b, or c is selected the auto rts flow control trigger level is set to "next fifo trigger level" for compatibility to st16c550 and st16c650 series. rts/dtr# triggers on the next level of the rx fifo trigger level, in another word, one fifo level above and one fifo level below. see ta b l e 1 3 for complete selection with fcr bit 4-5 and fctr bit 6-7, i.e. if table c is used on the receiver with rx fifo trigger level set to 56 bytes, rts/dtr# output will de- asserts at 60 and re-asserts at 16. enhanced feature register (efr) - read/write enhanced features are enabled or disabled using this register. bit 0-3 provide single or dual consecutive character software flow control selection (see ta b l e 1 7 ). when the xon1 and xon2 and xoff1 and xoff2 modes are selected, the double 8-bit words are concatenated into two sequential characters. caution: note that whenever changing the tx or rx flow control bits, always reset all bits back to logic 0 (disable) before programming a new setting. efr[3:0]: software flow control select combinations of software flow control can be selected by programming t hese bits ( see ta b l e 1 7 ). t able 17: s oftware f low c ontrol f unctions efr bit -3 c ont -3 efr bit -2 c ont -2 efr bit -1 c ont -1 efr bit -0 c ont -0 t ransmit and r eceive s oftware f low c ontrol 0 0 0 0 no tx and rx flow control (default and reset) 0 0 x x no transmit flow control 1 0 x x transmit xon1/xoff1 0 1 x x transmit xon2/xoff2 1 1 x x transmit xon1 and x on2/xoff1 and xoff2 x x 0 0 no receive flow control x x 1 0 receiver compares xon1/xoff1 x x 0 1 receiver compares xon2/xoff2 1 0 1 1 transmit xon1/ xoff1, receiver compares xon1 or xon2, xoff1 or xoff2 0 1 1 1 transmit xon2/xoff2, receiver compares xon1 or xon2, xoff1 or xoff2 1 1 1 1 transmit xon1 and x on2/xoff1 and xoff2, receiver compares xon1 and xon2/xoff1 and xoff2 0 0 1 1 no transmit flow control, receiver compares xon1 and xon2/xoff1 and xoff2
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 46 efr[4]: enhanced function bits enable enhanced function control bit. this bit enables the functions in ier bits 4-7, isr bits 4-5, fcr bits 4-5, and mcr bits 5-7 to be modified. after modifying any enhanced bits, efr bit-4 can be set to a logic 0 to latch the new values. this feature prevents legacy software from altering or overwriting the enhanced functions once set. normally, it is recommended to leave it enabled, logic 1. logic 0 = modification disable/latch enhanced features. ier bits 4-7, isr bits 4-5, fcr bits 4-5, and mcr bits 5-7 are saved to retain the user settings. after a reset, the ier bits 4-7, isr bits 4-5, fcr bits 4-5, and mcr bits 5-7 are set to a logic 0 to be compatible with st16c554 mode (default). logic 1 = enables the enhanced functions. when this bit is set to a logic 1 all enhanced features are enabled. efr[5]: special character detect enable logic 0 = special character detect disabled (default). logic 1 = special character detect enabled. the uart compares each incoming receive character with data in xoff-2 register. if a match exists, the received data will be tr ansferred to fifo and isr bit-4 will be set to indicate detection of the special character. bit-0 corresponds with the lsb bit for the receive character. if flow control is set for comparing xon1, xoff1 (efr [1:0]=10) then flow control and special character work normally. however, if flow control is set for comparing xon2, xoff2 (efr[1:0]=01) then flow control works normally, but xoff2 will not go to the fifo, and will generate an xoff interrupt and a special character interrupt. efr[6]: auto rts or dtr flow control enable rts#/dtr# output may be used for hardware flow control by setting efr bit-6 to logic 1. when auto rts/ dtr is selected, an interrupt will be generated when the receive fifo is filled to the programmed trigger level and rts/dtr# will de-assert to a logic 1 at the next upper trigger or selected hysteresis level. rts/dtr# will return to a logic 0 when fifo data falls below the next lower trigger or selected hysteresis level (see fctr bits 4-7). the rts# or dtr# output must be asserted (logic 0) before the auto rts/dtr can take effect. the selection for rts# or dtr# is through mcr bit-2. rts/dtr# pin will function as a general purpose output when hardware flow control is disabled. logic 0 = automatic rts/dtr flow control is disabled (default). logic 1 = enable automatic rts/dtr flow control. efr[7]: auto cts flow control enable automatic cts or dsr flow control. logic 0 = automatic cts/dsr flow control is disabled (default). logic 1 = enable automatic cts/dsr flow control. transmission stops when cts/dsr# pin de-asserts to logic 1. transmission resumes when cts/dsr# pin returns to a logic 0. the selection for cts# or dsr# is through mcr bit-2.
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 47 txcnt[7:0]: transmit fifo level counter, read-only transmit fifo level byte count from 0x00 (zero) to 0x40 (64). this 8-bit register gives an indication of the number of characters in the transmit fifo. the fifo level byte count register is read only. the user can take advantage of the fifo level byte counter for faster data loading to the transmit fifo, which reduces cpu bandwidth requirements. please see the application note dan119 on exars website for a detailed di scussion of fifo level counters. txtrg [7:0]: transmit fifo trigger level, write-only an 8-bit value written to this register sets the tx fifo trigger level from 0x00 (zero) to 0x40 (64). the tx fifo trigger level generates an interrupt whenever the data level in the transmit fifo falls below this preset trigger level. rxcnt[7:0]: receive fifo level counter, read-only receive fifo level byte count from 0x00 (zero) to 0x40 (64). it gives an indication of the number of characters in the receive fifo. the fifo level byte count register is read only. the user can take advantage of the fifo level byte counter for faster data unloading from the receiver fifo, which reduces cpu bandwidth requirements. please see the application note dan119 on exars website for a detailed discussion of fifo level counters. rxtrg[7:0]: receive fifo trigger level, write only an 8-bit value written to this register, sets the rx fifo trigger level from 0x00 (zero) to 0x40 (64). the rx fifo trigger level generates an interrupt whenever the receive fifo level rises to this preset trigger level.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 48 t able 18: uart[1:0] reset conditions registers reset state dll bits 7-0 = 0xxx dlm bits 7-0 = 0xxx rhr bits 7-0 = 0xxx thr bits 7-0 = 0xxx ier bits 7-0 = 0x00 fcr bits 7-0 = 0x00 isr bits 7-0 = 0x01 lcr bits 7-0 = 0x00 mcr bits 7-0 = 0x00 lsr bits 7-0 = 0x60 msr bits 3-0 = logic 0 bits 7-4 = logic levels of the inputs spr bits 7-0 = 0xff fctr bits 7-0 = 0x00 efr bits 7-0 = 0x00 txcnt bits 7-0 = 0x00 txtrg bits 7-0 = 0x00 rxcnt bits 7-0 = 0x00 rxtrg bits 7-0 = 0x00 xchar bits 7-0 = 0x00 xon1 bits 7-0 = 0x00 xon2 bits 7-0 = 0x00 xoff1 bits 7-0 = 0x00 xoff2 bits 7-0 = 0x00 i/o signals reset state tx[ch-1:0] logic 1 irtx[ch-1:0] logic 0 rts#[ch-1:0] logic 1 dtr#[ch-1:0] logic 1 eeck logic 0 eecs logic 0 eedi logic 0
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 49 absolute maximum ratings power supply range (vcc) 7 volts voltage at any pci bus pin -0.5 to (vio+0.5) volts voltage at any non-pci bus pin -0.5 to 7 volts operating temperature -40 o to +85 o c storage temperature -65 o to +150 o c package dissipation 500 mw thermal resistance (20x20x1.0mm 144-tqfp) theta-ja = 45, theta-jc = 7 o c/w electrical characteristics dc electrical characteristics for 5v signaling ta = 0 o to 70 o c (-40 o to +85 o c for industrial grade package). vio = 4.75 - 5.25v, vcc = 4.5 - 5.5v. s ymbol p arameter m in m ax u nits c ondition n otes v il input low voltage -0.5 0.8 v all inputs v ih input high voltage 2.0 vio + 0.5 v for pci bus and external clock inputs v ih input high voltage 2.0 6 v for non-pci bus inputs v ol output low voltage 0.55 v i ol = 6 ma all outputs v oh output high voltage 2.4 v i oh = -2 ma all outputs i il input low leakage current -10 ua i ih input high leakage current 10 ua i cl input clock leakage +/-10 ua c in input pin capacitance 10 pf c clk clk pin capacitance 5 12 pf c idsel idsel pin capacitance 8 pf i cc power supply current 4 ma pci bus clk and ext. clock=2mhz, all inputs are at vcc or gnd and all outputs are unloaded i sleep sleep current 20 ua both uarts asleep. ad[31:0] at gnd, all inputs at vcc or gnd vcc must equal vio . see sleep mode section on page 18
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 50 ac electrical characteristics for 5v signaling ta = 0 o to 70 o c (-40 o to +85 o c for industrial grade package). vio = 4.75 - 5.25v, vcc = 4.5 - 5.5v. s ymbol p arameter m in m ax u nits n otes xtal1 crystal oscillator 24 mhz uart clock eclk external clock 50 mhz i oh(ac) switching current high -44 ma see pci specification rev. 2.3 i ol(ac) switching current low 95 ma see pci specification rev. 2.3 i cl low clamp current -25+(vin+1)/0.015 ma -5 < vin -1 slew r output rise slew rate 1 5 v/ns 0.4v to 2.4v load slew f output fall slew rate 1 5 v/ns 2.4v to 0.4v load t cyc clk cycle time 30 ns pci bus clock, clk t hi clk high time 11 ns t lo clk low time 11 ns clk slew rate 1 4 v/ns t va l clk to signal valid delay 2 11 ns t on float to active delay 2 ns t off active to float delay 28 ns t setup input setup time to clk - bused signals 7ns t hold input hold time from clk 0 ns t prst rst# active time after power stable 1ms t crst# rst# active time after clk stable 100 us rst# slew rate 50 mv/ns
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 51 electrical characteristics dc electrical characteristics for 3.3v signalling ta = 0 o to 70 o c (-40 o to +85 o c for industrial grade package), vio = 3.0 - 3.6v, vcc = 3.0 - 5.5v. s ymbol p arameter m in m ax u nits c ondition n otes v il input low voltage -0.5 0.3vio v for pci bus inputs v il input low voltage -0.5 0.8 v for non-pci bus inputs v ih input high voltage 0.5vio vio + 0.5 v for pci bus and external clock inputs v ih input high voltage 2.0 6.0 v for non-pci bus inputs v ol output low voltage 0.4 v i ol = 4ma all outputs v oh output high voltage 0.9vio v i oh = -0.5ma pci bus outputs v oh output high voltage 2.0 v i oh = -1ma vcc = 3.0 - 3.6v non-pci bus outputs v oh output high voltage 2.4 v i oh = -2ma vcc = 4.5 - 5.5v non-pci bus outputs i il input low leakage current -10 m a i ih input high leak age current 10 m a i cl input clock leakage +/-10 m a c in input pin capacitance 10 pf c clk clk pin capacitance 12 pf c idsel idsel pin capacitance 8 pf i cc power supply current 2 ma pci clk and ext. clock=2mhz, all inputs are at gnd and all outputs are unloaded i sleep sleep current 20 m a both uarts asleep. ad[31:0] at gnd, all inputs at vcc or gnd vcc must equal vio . see sleep mode section on page 18
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 52 ac electrical characteristics for 3.3v signaling ta = 0 o to 70 o c (-40 o to +85 o c for industrial grade package), vio = 3.0 - 3.6v, vcc = 3.0 - 5.5v. s ymbol p arameter m in m ax u nits n otes xtal1 xtal2 crystal frequency 24 mhz on-chip o sc. eclk external clock 33 mhz ext. clock on xtal1 i oh(ac) switching current high -12vio ma see pci specification rev. 2.3 i ol(ac) switching current low 16vio ma see pci specification rev. 2.3 i ch high clamp current 25+(vin-vio-1)/0.015 ma vio+4 > vin 3 vio+1 i cl low clamp current -25+(vin+1)/0.015 ma -3 < vin -1 slew r output rise slew rate 1 4 v/ns 0.2vio - 0.6vio load slew f output fall slew rate 1 4 v/ns 0.6vio - 0.2vio load t cyc clk cycle time 30 ns pci bus clock, clk t hi clk high time 11 ns t lo clk low time 11 ns clk slew rate 1 4 v/ns t val clk to signal valid delay 2 11 ns t on float to active delay 2 ns t off active to float delay 28 ns t setup input setup time to clk - bused signals 7ns t hold input hold time from clk 0 ns t prst rst# active time after power stable 1ms t crst# rst# active time after clk stable 100 us rst# slew rate 50 mv/ns
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 53 f igure 18. pci b us c onfiguration s pace r egisters r ead and w rite operation clk frame# ad[31:0] c/be[3:0]# trdy# irdy# devsel# 1234 cfg-rd byte enable# pcicfg_rd host host host host host target target target data transfer address data clk frame# ad[31:0] c/be[3:0]# trdy# irdy# devsel# 123 4 cfg-wr byte enable# pcicfg_wr host host host host host target target target data transfer address write data
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 54 f igure 19. d evice c onfiguration and uart r egisters r ead o peration for a b yte or dword clk frame# ad[31:0] c/be[3:0]# trdy# irdy# devsel# 1 23 4 address bus cmd byte enable# = byte byte transfer pci_rd1 5 6 7 par perr# 8 note: perr# and serr are optional in a bus target application. even parity is on ad[31:0], c/be[3:0]#, and par data parity active host host host host host target host target target target data byte wait wait wait address parity serr# target targe t active data word byte enable# = dword dword transfer wait wait data parity active 91011
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 55 f igure 20. d evice c onfiguration registers , uart r egisters and t ransmit d ata b urst w rite o pera - tion clk frame# ad[31:0] c/be[3:0]# trdy# ird y# devsel# 1 23 4 address bus cmd byte enable# = dword pci _ bwr 5 6 7 par perr# 8 note: perr# and serr are optional in a bus target application. even parity is on ad[31:0], c/be[3:0]#, and par host host host host host target host target target target address parity serr# target target active data parity active 910 data dword d ata dw o rd dword transfer dword transfer dword transfer dword transfer dword transfer data parity data parity data parity data parity active active active active 11 data dword data dword data dword
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 56 f igure 21. d evice c onfiguration r egisters , uart r egisters and r eceive d ata b urst r ead o peration data clk frame# ad[31:0] c/be[3:0]# trdy# irdy# devsel# 1 13 ad bus cmd byte enable# = dword pci_brd par perr# 18 note: perr# and serr are optional in a bus target application. even parity is on ad[31:0], c/be[3:0]#, and par host host host host host target host target target target serr# target target dword transfer dword transfer dword transfer dword transfer 23 8 ad data data data data active active active active active data data data
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 57 f igure 22. 5v pci b us c lock 2.0 v p-t-p (minimum) 2.4 v 0.4 v clk bused signal output delay tri-state output tval (2-11 nsec) ton (2 nsec min) toff (28 nsec max) 11 nsec (min) 4 nsec (max) 4 nsec (max) 11 nsec (min) tsetup (7 nsec min) thold (0 nsec) bused signal input pci_clk inputs valid tcyc
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 58 f igure 23. 3.3v pci b us c lock 0.4vcc p-to-p (minimum) 0.6 vcc 0.2vcc clk bused signal output delay tri-state output tvalid (2-11 ns) ton (2 ns min) toff (28 ns max) 11 ns (min) 1.44 ns (max) 1.44 ns (max) 11 ns (min) tsetup (7 ns min) thold (0 ns) bused signal input pci_clk inputs valid
XR17D152 xr xr xr xr universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 59 f igure 24. t ransmit d ata i nterrupt at t rigger l evel f igure 25. r eceive d ata r eady i nterrupt at t rigger l evel stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 5 data bits 6 data bits 7 data bits start bit tx data next data start bit tx interrupt at transmit trigger level baud rate clock of 16x or 8x txnofifo-1 set at below trigger level clear at above trigger level stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 start bit rx data input first byte that reaches the trigger level rx data ready interrupt at receive trigger level rxfifo1 de-asserted at below trigger level asserted at above trigger level
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 60 package dimensions 26 50 51 75 100 76 100 lead thin quad flat pack (14 x 14 x 1.0 mm, tqfp) d d 1 d d 1 e 1 25 seating plane a 2 a 1 c l a a min max min max a 0. 039 0. 047 1.00 1.20 a 1 0. 002 0. 006 0.05 0.15 a 2 0. 037 0. 041 0.95 1.05 b 0. 007 0. 011 0.17 0.27 c 0. 004 0. 008 0.09 0.20 d 0. 622 0. 638 15. 80 16. 20 d 1 0. 547 0. 555 13. 90 14. 10 e 0. 020 bsc 0. 50 bsc l 0. 018 0. 030 0.45 0.75 a 0 o 7 o 0 o 7 o note: the cont rol dimens ion is in millimeter. symbol inches millimeters rev. 1.00 b
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 61 notice exar corporation reserves the right to make changes to the products contained in this publication in o rder to improve design, performance or reliability. exar corporation assumes no responsib ility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a users specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assur ances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circums tances. copyright 2003 exar corporation datasheet july 2003. send your uart technical i nquiry with technical details to hotline: uarttechsupport@exar.com . reproduction, in part or whole, without the prior written consent of exar corporation is prohibited. revision history ordering information p art n umber p ackage o perating t emperature r ange d evice s tatus XR17D152cm 100-lead tqfp 0c to +70c active XR17D152im 100-lead tqfp -40c to +85c active date revision description november 2002 adv. rev. 1.0.0 advanced datasheet december 2002 rev. p1.0.0 preliminary datasheet february 2003 rev. p1.0.0 public release may 2003 rev. 1.0.0 final production release. clarified the dc and ac electrical characteristics. updated requirements for sleep mode. july 2003 rev. 1.1.0 added device status to ordering information.
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 i table of contents general description................................................................................................. 1 a pplications ............................................................................................................................... ................ 1 f eatures ............................................................................................................................... ...................... 1 f igure 1. b lock d iagram ............................................................................................................................... .............................. 1 f igure 2. p in o ut of the XR17D152 ...................................................................................................................... ..................... 2 ordering information ............................................................................................................................... .2 p in d escriptions ............................................................................................................................... ......... 3 pci local bus interface ........................................................................................................ ............ 3 modem or serial i/o interface.................................................................................................. ...... 3 ancillary signals .............................................................................................................. .................. 4 functional description ........................................................................................... 6 pci local bus interface ........................................................................................................ ....................................... 6 pci local bus configuration space registers ............................................................................................................ 6 eeprom interface............................................................................................................... ....................................... 6 1.0 application examples .................................................................................................... .............. 7 f igure 3. t ypical a pplication for a u niversal a dd - in c ard .................................................................................................... 7 f igure 4. t ypical a pplications in an e mbedded s ystem ............................................................................................................ 8 2.0 XR17D152 registers ...................................................................................................... .................. 9 f igure 5. t he XR17D152 r egister s ets ............................................................................................................................... ..... 9 2.1 pci local bus configuration space registers .......................................................................... 10 t able 1: pci l ocal b us c onfiguration s pace r egisters ....................................................................................................... 10 2.2 device configuration register set ....................................................................................... ......... 11 t able 2: XR17D152 d evice c onfiguration r egisters ............................................................................................................. 12 t able 3: d evice c onfiguration r egisters shown in byte alignment ................................................................................... 12 t able 4: d evice c onfiguration r egisters shown in dword alignment .............................................................................. 13 2.2.1 the interrupt status register .......................................................................................... ........................... 14 f igure 6. t he g lobal i nterrupt r egister , int0, int1, int2 and int3 .................................................................................. 15 t able 5: uart c hannel [1:0] i nterrupt s ource e ncoding ..................................................................................................... 15 t able 6: uart c hannel [1:0] i nterrupt c learing : .................................................................................................................. 15 2.2.2 general purpose 16-bit timer/counter. [timermsb, timelsb, timer, timecntl] (default 0xxx-xx- 00-00) ......................................................................................................................... .................................................... 16 f igure 7. t imer /c ounter circuit ............................................................................................................................... ................ 16 t able 7: timer control r egisters ............................................................................................................................... ....... 16 2.2.3 8xmode [7:0] (default 0x00)............................................................................................ .................................... 17 2.2.4 rega [15:8] reserved ................................................................................................... ........................................ 17 2.2.5 reset [23:16] - (default 0x00)......................................................................................... .................................... 17 2.2.6 sleep [31:24] - (default 0x00) ......................................................................................... .................................... 18 2.2.7 device identification and revision ..................................................................................... .......................... 18 2.2.8 regb register .......................................................................................................... ............................................. 18 2.2.9 multi-purpose inputs and outputs ....................................................................................... ....................... 19 2.2.10 mpio register ......................................................................................................... ............................................. 19 f igure 8. m ultipurpose input / output internal circuit ........................................................................................................... 19 3.0 crystal oscillator / buffer ............................................................................................. ...... 21 4.0 transmit and receive data ............................................................................................... ....... 21 f igure 9. t ypical oscillator connections ............................................................................................................................... 21 4.1 data loading and unloading via 32-bit pci burst transfers ............................................... 22 4.1.1 normal rx fifo data unloading at locations 0x100 ( channel 0) and 0 x300 ( channel 1) ........ 22 4.1.2 special rx fifo data unloading at locations 0x180 ( channel 0) and 0x380 ( channel 1) ........ 22 4.1.3 tx fifo data loading at locations 0x100 (channel 0) and 0x300 (channel 1) .............................. 23 4.2 fifo data loading and unloading through the uart channel registers, thr and rhr in 8-bit format .................................................................................................................. ............................ 23 5.0 uart .................................................................................................................... ................................ 24 5.1 programmable baud rate generator ........................................................................................ ... 24 t able 8: t ransmit and r eceive d ata r egister in b yte format , 16c550 compatible ............................................................ 24 f igure 10. b aud r ate g enerator ............................................................................................................................... .............. 24 5.2 automatic hardware (rts/cts or dtr/dsr) flow control operation .............................. 25 t able 9: t ypical data rates with a 14.7456 mh z crystal or external clock at 16x s ampling .......................................... 25 f igure 11. a uto rts/dtr and cts/dsr f low c ontrol o peration ...................................................................................... 26 5.3 infrared mode ........................................................................................................... ............................... 27
XR17D152 xr xr xr xr rev. 1.1.0 universal (3.3v and 5v) pci bus dual uart ii f igure 12. i nfrared t ransmit d ata e ncoding and r eceive d ata d ecoding .......................................................................... 27 5.4 internal loopback ....................................................................................................... .......................... 28 5.5 uart channel configuration registers and address decoding. ...................................... 28 f igure 13. i nternal l oop b ack f unction in each uart c hannel .......................................................................................... 28 t able 10: uart channel configuration registers. .................................................................................... .............. 29 t able 11: uart channel configuration registers description. s haded bits are enabled by efr b it -4. ....... 30 5.6 transmitter ............................................................................................................. .................................. 31 5.6.1 transmit holding register (thr)........................................................................................ ........................... 31 5.6.2 transmitter operation in non-fifo ...................................................................................... ........................ 31 f igure 14. t ransmitter o peration in non -fifo m ode ............................................................................................................ 31 5.6.3 transmitter operation in fifo .......................................................................................... ............................. 32 5.6.4 auto rs485 operation ................................................................................................... ..................................... 32 5.7 receiver ................................................................................................................ ...................................... 32 f igure 15. t ransmiitter o peration in fifo and f low c ontrol m ode ................................................................................... 32 5.7.1 receiver operation in non-fifo mode ................................................................................... ..................... 33 5.7.2 receiver operation with fifo ........................................................................................... .............................. 33 5.8 registers ............................................................................................................... ..................................... 33 r eceive h olding r egister (rhr) ............................................................................................................33 f igure 16. r eceiver o peration in non -fifo m ode .................................................................................................................. 33 f igure 17. r eceiver o peration in fifo and f low c ontrol m ode ......................................................................................... 33 b aud r ate g enerator d ivisors (dll and dlm) .....................................................................................34 i nterrupt e nable r egister (ier) ............................................................................................................34 i nterrupt s tatus r egister (isr) ............................................................................................................35 interrupt generation: .......................................................................................................... ....................................... 35 interrupt clearing: ............................................................................................................ .......................................... 35 fifo c ontrol r egister (fcr) ................................................................................................................36 t able 12: i nterrupt s ource and p riority l evel ..................................................................................................................... 36 l ine c ontrol r egister (lcr) ..................................................................................................................38 t able 13: t ransmit and r eceive fifo t rigger l evel s election ............................................................................................ 38 t able 14: p arity selection ............................................................................................................................... ......................... 39 m odem c ontrol r egister (mcr) or g eneral p urpose o utputs c ontrol .........................................40 l ine s tatus r egister (lsr) .....................................................................................................................41 m odem s tatus r egister (msr) - r ead o nly ..........................................................................................42 m odem s tatus r egister (msr) - w rite o nly .........................................................................................43 s cratch p ad r egister (spr) - r ead /w rite ............................................................................................43 t able 15: a uto rs485 h alf - duplex d irection c ontrol d elay from t ransmit - to -r eceive ................................................. 43 f eature c ontrol r egister (fctr) - r ead /w rite ..................................................................................44 t able 16: 16 s electable h ysteresis l evels w hen t rigger t able -d is s elected ................................................................ 44 e nhanced f eature r egister (efr) - r ead /w rite ..................................................................................45 t able 17: s oftware f low c ontrol f unctions ........................................................................................................................ 45 txcnt[7:0]: t ransmit fifo l evel c ounter , read - only .........................................................................47 txtrg [7:0]: t ransmit fifo t rigger l evel , write - only .......................................................................47 rxcnt[7:0]: r eceive fifo l evel c ounter , read - only ..........................................................................47 rxtrg[7:0]: r eceive fifo t rigger l evel , write only ..........................................................................47 t able 18: uart[1:0] reset conditions ............................................................................................... ................................ 48 absolute maximum ratings...................................................................................49 electrical characteristics ................................................................................49 dc electrical characteristics for 5v signaling .................................................................49 ac electrical characteristics for 5v signaling ...................................................................50 electrical characteristics ................................................................................51 dc electrical characteristics for 3.3v signalling ..................................................................51 ac electrical characteristics for 3.3v signaling ................................................................52 f igure 18. pci b us c onfiguration s pace r egisters r ead and w rite operation ................................................................. 53 f igure 19. d evice c onfiguration and uart r egisters r ead o peration for a b yte or dword ...................................... 54 f igure 20. d evice c onfiguration registers , uart r egisters and t ransmit d ata b urst w rite o peration ..................... 55 f igure 21. d evice c onfiguration r egisters , uart r egisters and r eceive d ata b urst r ead o peration ........................ 56 f igure 22. 5v pci b us c lock ............................................................................................................................... ..................... 57 f igure 23. 3.3v pci b us c lock ............................................................................................................................... .................. 58 f igure 24. t ransmit d ata i nterrupt at t rigger l evel ........................................................................................................... 59 f igure 25. r eceive d ata r eady i nterrupt at t rigger l evel .................................................................................................. 59
x x x xr r r r XR17D152 universal (3.3v and 5v) pci bus dual uart rev. 1.1.0 iii package dimensions ................................................................................................ 60 r evision h istory .............................................................................................................................. ....... 61 ordering information .............................................................................................................................. 6 1 t able of c ontents ............................................................................................................ i


▲Up To Search▲   

 
Price & Availability of XR17D152

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X